Skip to main content
Glama

set_keyframe

Creates editable OpenToonz keyframes for layers, pegs, or cameras at a specified frame, setting position, rotation, scale, depth, and interpolation.

Instructions

Keyframe a layer, peg, or 'camera' (real OpenToonz keys, editable in GUI Function Editor). x/y: px offset from rest (+y down). rotation: deg CCW. scale*: 1.0=100%. z: depth. interp (segment starting at this key): ease | linear | constant | speed | exp. Camera: scale<1 zooms IN; use exp interp for trucks (natural zoom).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "scene": "<scene>",
      "target": "<target>",
      "frame": "<frame>"
    },
    "name": "set_keyframe"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
zNo
frameYes
scaleNo
sceneYes
interpNoease
targetYes
scale_xNo
scale_yNo
rotationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose useful behavior: keys are real OpenToonz keys editable in the Function Editor, plus unit conventions for every axis. It does not state what happens when a key already exists at that frame (overwrite vs. additive), whether omitted optional params reset to rest or leave prior values, or any undo/permission implications.

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?

Dense, front-loaded, and telegraphic: purpose first, then per-parameter conventions, then camera caveats. Every line adds information; the shorthand style ('x/y: px offset from rest') is compact without being wasteful.

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

Completeness3/5

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

For an 11-parameter mutation tool with no annotations and no output schema, the description gives solid unit and interpolation semantics but omits key gaps: behavior on existing keys, handling of null optional params, and the accepted values for target/scene. It is adequate but not complete enough to call confidently without schema guessing.

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 0%, so the description must compensate for 11 parameters. It covers x/y offset semantics ('px offset from rest, +y down'), rotation in degrees CCW, scale*=1.0=100%, z as depth, and enumerates valid interp values, which is meaningful added meaning. However frame, scene, and especially target's expected value format ('camera' literal vs. layer/peg name) are left ambiguous, and scale_x/scale_y are only hinted at through 'scale*'.

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

Purpose4/5

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

States a specific verb and resource: 'Keyframe a layer, peg, or camera', and clarifies it produces real OpenToonz keys editable in the GUI Function Editor. It does not explicitly distinguish itself from the sibling clear_keyframes, so it stops short of 5.

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?

Usage context is implied rather than stated: camera-specific advice ('scale<1 zooms IN; use exp interp for trucks') tells the agent how to use it in one scenario, but there is no explicit when-to-use / when-not-to-use versus clear_keyframes or set_exposure.

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