asset_reference_diagnostics
Auto-generated from the Python tool registry. Do not hand-edit outside
<!-- examples:start --><!-- examples:end -->blocks — the generator (tools/generate_docs_reference.py) will overwrite them.
Group: assets · Module: services.registry.capability_adapter
Maturity: stable (support status; independent of enabled state, readiness and permissions).
Description
Inspect dependencies and reverse references, or preview asset moves and deletion. Read-only inspection; results can change with Unity state. Action inputs: preview_move: requires path, destination; success data includes path, guid, destination, referenceRevision, scanComplete.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | Literal['get_dependencies', 'get_reverse_references', 'preview_move', 'preview_delete'] | yes | Feature action to perform. |
path | str | None | — | Asset path required for asset operations; search defaults to Assets. Ignored for bundle assignment inspection. |
destination | str | None | — | Target path for 'duplicate'/'move'. |
page_size | int | str | None | — | Page size: search 1-1000 (default 50), previews 1-32 (default 32), bundle inspection 1-100 (default 50). |
page_number | int | str | None | — | Page number for pagination (1-based). |
recursive | bool | — | Include indirect bundle dependencies (default false). |
scan_root | str | None | — | Reference actions: candidate/dependency folder (Assets by default). |
max_assets | int | str | None | — | Reference actions: 1-250000; default 1024. Reverse scans count distinct eligible files, excluding folders/duplicates; forward scans count visited assets including the source. |
max_work | int | str | None | — | Reference actions: at most 1-4000000 node/edge work units; default 10000. |
reference_snapshot | bool | None | — | Reference reads/previews only: retain captured scalar pages for ten minutes idle. |
reference_cursor | str | None | — | Reference reads/previews only: continue a captured observation with identical scan options. Imported changes invalidate it. |
reference_revision | str | None | — | Recheck the same bounded read/preview or guard move/delete immediately before mutation. |
unity_instance | str | int | None | — | Target Unity instance for this call: Name@hash or hash prefix; an integer selects only that exact port over stdio and is rejected over HTTP. Read mcpforunity://instances for available targets. Omit to use the legacy active selection or the sole available instance. |
Returns
A dict containing the Unity response. The exact shape depends on the action.
Examples
Inspect recursive dependencies of a prefab before moving it. Replace the path with an existing asset.
{
"action": "get_dependencies",
"path": "Assets/Prefabs/Player.prefab",
"recursive": true,
"page_size": 25
}