Skip to main content
Glama

Bake expression to keyframes

convert_expression_to_keyframes
Destructive

Bakes a property's expression into sampled keyframes over a chosen time range, replacing existing keys and removing the expression for editable animation.

Instructions

Bake a property's expression into keyframes: samples the expression result every stepFrames frames (default 1) over startTime..endTime (default the layer's visible range), replaces existing keys with them and removes the expression.

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": "convert_expression_to_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
endTimeNoTime: seconds (number), '12f' for frames, or 'HH:MM:SS:FF' timecode.
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'.
startTimeNoTime: seconds (number), '12f' for frames, or 'HH:MM:SS:FF' timecode.
stepFramesNoSample every N frames (default 1).
interpolationNoInterpolation for the baked keys (default AE's, usually linear).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description earns credit beyond them by specifying exactly what is destroyed: existing keys are replaced and the expression is removed. It also discloses the sampling behavior (every stepFrames frames, default 1) and the default time range, which no structured field covers.

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

Conciseness5/5

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

A single dense sentence that front-loads the action, then the mechanics, then the side effects. Every clause carries information an agent needs; nothing is repeated from the schema verbatim.

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 7-parameter mutation with no output schema, the description covers inputs, defaults, and destructive consequences well. The remaining gap is the return value (e.g., number of keys created), which the agent must discover by calling it.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description goes further by supplying defaults the schema omits, notably stepFrames defaulting to 1 and startTime/endTime defaulting to the layer's visible range. It does not add interpretation for comp, layer, property or interpolation beyond the schema, so it is not a 5.

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?

"Bake a property's expression into keyframes" names a specific verb and resource, and the follow-on clause clarifies the exact transformation (sample the expression, replace keys, drop the expression). This distinguishes it from add_keyframes and audio_to_keyframes without naming them, since the source of the keys is explicit.

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 is implied rather than stated: an agent can infer this is for freezing an expression's output into editable keys, but there is no explicit when-to-use/when-not guidance and no mention of alternatives such as add_keyframes or remove_expression. Adequate but leaves routing to inference.

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