Skip to main content

scene_inspect

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

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

Description​

Inspect loaded scenes, hierarchy and build settings, or frame the Scene view.

Parameters​

NameTypeRequiredDescription
actionLiteral['get_hierarchy', 'get_active', 'get_build_settings', 'get_loaded_scenes', 'scene_view_frame']yesFeature action to perform.
scene_view_targetstr | int | None—GameObject reference for scene_view_frame (name, path, or instance ID).
parentstr | int | None—Optional parent GameObject reference (name/path/instanceID) to list direct children.
page_sizeint | str | None—Page size for get_hierarchy paging.
cursorint | str | None—Opaque cursor for paging (offset).
max_nodesint | str | None—Hard cap on returned nodes per request (safety).
max_depthint | str | None—Accepted for forward-compatibility; current paging returns a single level.
max_children_per_nodeint | str | None—Child paging hint (safety).
include_transformbool | str | None—If true, include local transform in node summaries.
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​

Read one level of the active scene hierarchy with local transforms. For a subsequent level, pass a returned object as parent.

MCP arguments
{
"action": "get_hierarchy",
"page_size": 20,
"include_transform": true
}