Skip to main content

scene_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: scene  ·  Module: services.registry.capability_adapter

Maturity: stable (support status; independent of enabled state, readiness and permissions).

Description​

Inspect scene references within explicit work and result budgets. Inspection may load assets or invoke user-defined callbacks.

Parameters​

NameTypeRequiredDescription
actionLiteral['validate_references']yesFeature action to perform.
pathstr | None—Scene path under Assets/ or Packages/. For Save As, the destination under Assets/. A bare path is relative to Assets/.
page_sizeint | str | None—Page size for get_hierarchy paging.
reference_scopeLiteral['active_scene', 'loaded_scenes', 'prefab', 'scriptable_object'] | None—validate_references only; loaded scopes never open scenes.
max_objectsint | str | None—validate: 1-10000 objects per slice, default 1000; validate_references: 1-250000, default 1024.
max_workint | str | None—validate_references: maximum 1-4000000 traversal/property steps, default 100000.
page_numberint | str | None—validate_references: 1-based page, maximum page_size 100.
reference_revisionstr | None—validate_references: refuse if the repeated observation has drifted.
reference_snapshotbool | None—validate_references: capture stable paged evidence without rescanning later pages.
reference_cursorstr | None—validate_references: returned snapshot cursor; captured evidence, not a live revision recheck.
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 references in the active scene, with explicit workload and page limits. The action may load assets or invoke project callbacks. Use the returned continuation when the report is partial.

MCP arguments
{
"action": "validate_references",
"reference_scope": "active_scene",
"max_objects": 100,
"page_size": 20
}