Skip to main content
Glama

Copy keyframes

copy_keyframes

Copy keyframes with easing, tangents, and roving from one layer property to matching properties on other layers or comps; shift timing, paste at a set time, or replace existing keys.

Instructions

Copy keyframes (with ease, tangents, roving) from one layer's property to the same property path (or targetProperty) on other layers, optionally in another comp. Shift them with timeOffset, or paste so the first copied key lands at pasteAt. replace=true clears the target's keys first.

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

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
keysNoKeyframes to affect: 'all' (default), 'selected', a 1-based index, an array of indexes, {start,end} time range (inclusive, either end optional), or {times:[...]} exact key times.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
pasteAtNoPlace the first copied key at this time (overrides timeOffset).
replaceNoRemove the target's existing keys first.
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'.
targetCompNoComp of the target layers (default: same comp).
timeOffsetNoShift pasted keys by this much.
targetLayersNoLayers to paste onto (array of refs, or 'selected'/'all').
copyExpressionNoAlso copy the source expression.
targetPropertyNoTarget property path (default: same as 'property').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior2/5

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

The description adds real behavioral detail the annotations do not carry — which keyframe attributes travel with the copy, and that replace=true deletes the target's existing keys before pasting. That last point sits uneasily with destructiveHint=false: the tool can remove existing keyframes, which the annotation denies. It also says nothing about what happens when the target property is missing or what the call returns.

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?

Two sentences, front-loaded with the core action and then the timing/replace options, with no filler. Dense but every clause carries an operational fact for an 11-parameter tool.

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 an 11-parameter mutation tool with no output schema, the description covers the modes, the precedence between pasteAt and timeOffset, and the destructive replace path. It stops short of error/edge behavior (nonexistent property, mismatched property types, default targetLayers) which an agent would want before calling.

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 100%, so every one of the 11 parameters is already documented in the schema, and the description's parameter content (timeOffset vs pasteAt, targetProperty fallback, cross-comp targeting) largely restates it. Baseline 3 is the correct ceiling here — the description does not add format or edge-case meaning beyond the schema.

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?

The description opens with a specific verb+resource ('Copy keyframes ... from one layer's property to the same property path (or targetProperty) on other layers') and names the exact fidelity of the copy (ease, tangents, roving). That scope cleanly separates it from add_keyframes, shift_keyframes and copy_effects without opening a schema.

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

Usage Guidelines4/5

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

It tells the agent which mode to pick: default paste preserves relative timing, timeOffset shifts the pasted keys, pasteAt repositions the first key, and replace=true wipes the target first. What is missing is any explicit exclusion or comparison against siblings (e.g. when to use shift_keyframes or add_keyframes instead), so the agent must infer alternatives.

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