Skip to main content
Glama

Set camera options

set_camera_options

Changes camera options such as zoom, focal length, depth of field, focus distance, aperture, iris shape, and bokeh, either statically or as keyframes at a given time.

Instructions

Change a camera's Camera Options (zoom or focal length, depth of field, focus distance, aperture, blur level, iris shape/rotation/roundness, bokeh highlight...), statically or as keyframes at 'time'. cameraType switches one-node/two-node. Returns all camera options after the change; options that do not exist for the current renderer are listed in 'skipped'.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_camera_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
timeNoSet the values as keyframes at this time (seconds, '12f' or timecode). Omit = static value (or a key at the current time when the property is already animated).
zoomNoZoom in pixels (overrides focalLength).
cameraNoCamera layer (index, name or {id}). Omit = the comp's active camera.
optionsNoAny other option by display name or matchName, e.g. {'Iris Rotation': 30} or {'ADBE Light Intensity': 80}.
apertureNoAperture in pixels (bigger = shallower focus).
blurLevelNoBlur level in % (100 = natural).
irisShapeNoIris shape: 'Fast Rectangle', 'Triangle', 'Square', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Nonagon', 'Decagon' (or 1-9).
cameraTypeNoSwitch between one-node and two-node camera.
focalLengthNoLens focal length in mm (presets 15, 20, 24, 28, 35, 50, 80, 135, 200 or any number; '35mm' also works). Zoom = compWidth * mm / 36 (36 mm film). Default 50.
depthOfFieldNoDepth of field on/off.
irisRotationNoIris rotation in degrees.
focusDistanceNoFocus distance in pixels.
highlightGainNoBokeh highlight gain.
irisRoundnessNoIris roundness %.
focusAreaWidthNoFocus area width (Advanced 3D renderer).
irisAspectRatioNoIris aspect ratio.
nearFarBlurLevelNo[near, far] blur level % (Advanced 3D).
highlightThresholdNoBokeh highlight threshold (0-1).
highlightSaturationNoBokeh highlight saturation.
irisDiffractionFringeNoIris diffraction fringe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare a non-readonly, non-destructive, closed-world mutation, and the description adds real context beyond them: it discloses the return behavior ('Returns all camera options after the change') and the failure-tolerance model (unsupported options land in 'skipped' instead of erroring), which matters a lot given there is no output schema. It does not mention whether changes are undoable or what happens when no camera exists in the comp.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded in the first clause and the second sentence carries the return-value information. The long parenthetical enumeration of options is informative but borders on bloat given the schema already lists every parameter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 21-parameter mutation tool with no output schema, the description covers what an agent most needs: the static-vs-keyframe distinction, the cameraType side effect, the return payload, and the 'skipped' tolerance for renderer-unsupported options. Missing only edge-case behavior (no active camera, invalid option names) and permission assumptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every one of the 21 parameters is already documented in the schema, including the time semantics, zoom-overrides-focalLength rule and the open-ended 'options' bag. The description restates the option categories but adds no syntax or precedence detail beyond what the schema supplies, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Change') and resource ('a camera's Camera Options') and then enumerates the option families covered (zoom/focal length, depth of field, focus distance, aperture, iris, bokeh), plus the static-vs-keyframe mode and the cameraType switch. Despite similarly named siblings such as set_light_options or set_material_options, the resource noun makes the scope unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implicitly guides usage by explaining 'statically or as keyframes at time' and by noting renderer-dependent options, but it never states when to pick this tool over adjacent ones (create_camera, set_property, or a generic keyframe setter). No explicit exclusions or prerequisites are given, so usage must be inferred from the resource name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools