Skip to main content
Glama

Update keyframe

update_keyframe

Modify a single keyframe by index or time: change its value, move it to a new time, apply an interpolation or ease preset, or select/deselect it while preserving ease and tangent attributes.

Instructions

Change one keyframe (picked by 1-based index or by time): new value, move it to newTime (all ease/tangent attributes are preserved; a key already at newTime is replaced), set an interpolation/ease preset, or (de)select it.

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": {
      "layer": "<layer>",
      "property": "<property>"
    },
    "name": "update_keyframe"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
timeNoPick the keyframe at this time instead of by index.
indexNo1-based keyframe index.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
valueNoValue: number (1D), array ([x,y] / [x,y,z] / color), '#RRGGBB' for colors, string or {text,...} for Source Text, {vertices,inTangents,outTangents,closed} for paths.
newTimeNoMove the key to this time.
propertyYesProperty path, '/'-separated, by display name, matchName or 1-based index. Shortcuts: 'Position', 'Scale', 'Rotation', 'Opacity', 'Anchor Point', 'Source Text', 'Time Remap', 'Audio Levels'. Examples: 'Transform/Position', 'Effects/Gaussian Blur/Blurriness', 'Contents/Rectangle 1/Fill 1/Color', 'Masks/Mask 1/Mask Feather'.
selectedNo
interpolationNoKeyframe interpolation / ease preset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare it as a non-read-only, non-destructive, closed-world mutation. The description adds real behavioral detail beyond that: ease/tangent attributes are preserved when moving a key, and a key already at newTime is replaced rather than erroring. It still does not cover undoability, failure modes for bad index/time, or what happens when multiple operation parameters are supplied at once.

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?

A single, front-loaded sentence that packs the core action and its variants without filler. The nested parenthetical makes it slightly dense but every clause carries information; nothing is redundant with the title.

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?

With 9 parameters, no output schema, and only minimal annotations, the description does a fair job covering the main operations and one important side effect. It leaves gaps an agent would want filled: whether the tool returns the updated key, behavior on invalid index/time, and how it relates to the more specialized keyframe siblings.

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 coverage is 89%, so parameters are already well documented by the schema. The description adds modest value by tying specific parameters to operations (index/time for selecting the key, value for the new value, newTime for moving, interpolation for the preset, selected for (de)selection) and by quoting the 1-based indexing. It does not clarify interplay — e.g., whether value, newTime, interpolation, and selected can be combined in one call.

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 ("Change one keyframe") and enumerates the four operations it can perform: set value, move to newTime, set interpolation preset, and (de)select. An agent can distinguish it from generic add/animate tools, but the description never mentions that siblings like set_keyframe_ease, set_keyframe_interpolation, or scale_keyframe_timing overlap with parts of this tool's behavior.

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 scopes usage to a single existing keyframe identified by index or time, and the operation list hints at what the tool is for. There is no explicit guidance on when to prefer this over set_keyframe_ease / set_keyframe_interpolation / scale_keyframe_timing, nor any precondition (e.g., keyframe must already exist, layer/property required).

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