Skip to main content

manage_cameras

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

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

Description​

Create or list cameras, select targets and configure lenses or priority. For a read-only inventory, call inspect_scene_cameras or read mcpforunity://scene/cameras.

Parameters​

NameTypeRequiredDescription
actionLiteral['create_camera', 'list_cameras', 'set_target', 'set_priority', 'set_lens']yesFeature action to perform.
targetstr | None—Target camera (name, path, or instance ID).
search_methodLiteral['by_id', 'by_name', 'by_path'] | None—How to find target.
propertiesdict[str, Any] | str | None—Action-specific parameters (dict or JSON string).
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​

List the cameras the connected Editor can inspect. Use returned names or stable references to choose the camera for a later operation.

MCP arguments
{
"action": "list_cameras"
}