Skip to main content

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​

NameTypeRequiredDescription
actionLiteral['get_dependencies', 'get_reverse_references', 'preview_move', 'preview_delete']yesFeature action to perform.
pathstr | None—Asset path required for asset operations; search defaults to Assets. Ignored for bundle assignment inspection.
destinationstr | None—Target path for 'duplicate'/'move'.
page_sizeint | str | None—Page size: search 1-1000 (default 50), previews 1-32 (default 32), bundle inspection 1-100 (default 50).
page_numberint | str | None—Page number for pagination (1-based).
recursivebool—Include indirect bundle dependencies (default false).
scan_rootstr | None—Reference actions: candidate/dependency folder (Assets by default).
max_assetsint | 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_workint | str | None—Reference actions: at most 1-4000000 node/edge work units; default 10000.
reference_snapshotbool | None—Reference reads/previews only: retain captured scalar pages for ten minutes idle.
reference_cursorstr | None—Reference reads/previews only: continue a captured observation with identical scan options. Imported changes invalidate it.
reference_revisionstr | None—Recheck the same bounded read/preview or guard move/delete immediately before mutation.
unity_instancestr | 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.

MCP arguments
{
"action": "get_dependencies",
"path": "Assets/Prefabs/Player.prefab",
"recursive": true,
"page_size": 25
}