Skip to main content

scene_validate

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​

Validate the scene, with optional explicit repair.

Parameters​

NameTypeRequiredDescription
actionLiteral['validate']yesFeature action to perform.
auto_repairbool | str | None—For validate: remove missing scripts after a complete bounded scan. Not undoable; cancellation before commit only; an admitted commit finishes its plan.
max_millisecondsint | str | None—validate: cooperative time budget 1-1000ms, default 25; native calls cannot be interrupted.
continuationstr | None—validate: opaque read-only continuation, valid for five minutes in the same unchanged Editor scene.
max_objectsint | str | None—validate: 1-10000 objects per slice, default 1000; validate_references: 1-250000, default 1024.
scene_handleint | None—validate/save: exact scene_handle from get_loaded_scenes. For save, all source selectors must match one loaded scene; omit them to save the active scene.
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​

Check the selected scene without applying repairs. Follow a returned continuation before treating the bounded scan as complete.

MCP arguments
{
"action": "validate",
"auto_repair": false,
"max_objects": 100
}