Skip to main content

manage_camera

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: legacy  ·  Module: services.tools.manage_camera

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

Description​

Manage cameras (Unity Camera + Cinemachine). Works without Cinemachine using basic Camera; unlocks presets, pipelines, and blending when Cinemachine is installed. Authoring writes include bounded verification of the affected camera or component. Activation and blend completion have separate observations. Use ping to check Cinemachine availability. For a read-only inventory, call inspect_scene_cameras or read mcpforunity://scene/cameras.

SETUP:

  • ping: Check if Cinemachine is available
  • ensure_brain: Ensure CinemachineBrain exists on main camera
  • get_brain_status: Get Brain state (active camera, blend, etc.)

CAMERA CREATION:

  • create_camera: Create camera with preset (third_person, freelook, follow, dolly, static, top_down, side_scroller). Falls back to basic Camera without Cinemachine.

CAMERA CONFIGURATION:

  • set_target: Set Follow and/or LookAt targets on a camera
  • set_priority: Set camera priority for Brain selection
  • set_lens: Configure lens (fieldOfView, nearClipPlane, farClipPlane, orthographicSize, dutch)
  • set_body: Configure Body component (bodyType to swap, plus component properties)
  • set_aim: Configure Aim component (aimType to swap, plus component properties)
  • set_noise: Configure Noise component (amplitudeGain, frequencyGain)

EXTENSIONS:

  • add_extension: Add extension (extensionType: CinemachineConfiner2D, CinemachineDeoccluder, CinemachineImpulseListener, CinemachineFollowZoom, CinemachineRecomposer, etc.)
  • remove_extension: Remove extension by type

CAMERA CONTROL:

  • set_blend: Configure default blend (style: Cut/EaseInOut/Linear/etc., duration)
  • force_camera: Override Brain to use specific camera
  • release_override: Release camera override
  • list_cameras: List all cameras with status

CAPTURE:

  • screenshot: Capture a screenshot. When no camera is specified, file-only requests use native Game View capture when available, and inline images use a composited Play mode frame when available. An automatic camera render reports camera_fallback and its reason. Specifying a camera renders that viewpoint directly. Camera renders omit Screen Space - Overlay canvases and UI Toolkit panels. Supports include_image=true for inline base64 PNG, batch='surround' for 6-angle contact sheet, batch='orbit' for configurable grid, view_target/view_position for positioned capture, and capture_source='scene_view' to capture the active Unity Scene View viewport.
  • screenshot_multiview: Shorthand for screenshot with batch='surround' and include_image=true.

Parameters​

NameTypeRequiredDescription
actionstryesThe camera 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).
screenshot_file_namestr | None—Screenshot file name (optional). Defaults to timestamp.
screenshot_super_sizeint | str | None—Screenshot supersize multiplier (integer 1 to 4).
camerastr | None—Camera to capture from (name, path, or instance ID). Omit for default Game View capture, which can fall back to an existing camera. Camera renders omit Screen Space - Overlay canvases and UI Toolkit panels.
include_imagebool | str | None—If true, return screenshot as inline base64 PNG. Default false.
max_resolutionint | str | None—Max resolution (longest edge px) for inline image, 1 to 8192. Default 640. The Editor also enforces frame and aggregate pixel budgets.
capture_sourceLiteral['game_view', 'scene_view'] | None—Screenshot source. 'game_view' (default) captures the game/camera path; 'scene_view' captures the active Unity Scene View viewport.
batchstr | None—Batch capture mode: 'surround' (6 angles) or 'orbit' (configurable grid).
view_targetstr | int | list[float] | None—Target to focus on. GameObject name/path/ID or [x,y,z]. For game_view: aims camera at target. For scene_view: frames the Scene View on the target.
view_positionlist[float] | str | None—World position [x,y,z] to place camera for positioned capture.
view_rotationlist[float] | str | None—Euler rotation [x,y,z] for camera. Overrides view_target if both provided.
orbit_anglesint | str | None—Number of azimuth samples for batch='orbit' (default 8, max 36).
orbit_elevationslist[float] | str | None—Elevation angles in degrees for batch='orbit' (default [0, 30, -15]). 1 to 16 finite angles; at most 128 total orbit shots.
orbit_distancefloat | str | None—Camera distance from target for batch='orbit' (default auto).
orbit_fovfloat | str | None—Camera FOV in degrees for batch='orbit' (default 60).
output_folderstr | None—Optional folder for screenshot output. Project-relative (e.g. 'Assets/Screenshots' or 'Captures') or absolute path inside the project. Overrides the user's Editor preference. If omitted, falls back to the Editor preference, then to the built-in default (Assets/Screenshots).
timeout_secondsint—Scene View repaint wait budget in seconds; returns as soon as a matching frame finishes.
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 existing cameras when using the legacy camera facade. New clients can use manage_cameras for the same inventory action.

MCP arguments
{
"action": "list_cameras"
}