Skip to main content

set_active_instance

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.tools.set_active_instance

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

Description​

Select a Unity instance by Name@hash, hash prefix, or stdio port. On sessionless clients, include_context returns a request-scoped observation.

Parameters​

NameTypeRequiredDescription
instancestryesTarget instance (Name@hash, hash prefix, or port number in stdio mode)
include_contextbool—Attach a bounded read-only snapshot of the selected Editor.
evidence_neededlist[str] | None—Caller-supplied checks still needed by the receiving agent. Supplying this includes context.
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​

Select the Harbor Editor and request a bounded context snapshot. Replace the example selector with the exact Name@hash value from mcpforunity://instances.

MCP arguments
{
"instance": "Harbor@01234567",
"include_context": true
}