Skip to main content
Glama

copy_keyframes

Copies every keyframe from one property to another with matching dimensionality, preserving timing, values, interpolation, ease, and spatial tangents; optionally shifts time or clears existing keys.

Instructions

Copy every keyframe from a source property to a destination property with FULL fidelity — time (optionally shifted by timeOffset), value, interpolation type (in/out), temporal ease (correct per-property array length), and spatial tangents + auto-bezier on spatial props (Position/Anchor Point). Dest can be in the same comp or another (destComp). clearExisting removes the dest's existing keyframes first. Source and dest value dimensionality must match (2D→2D, 3D→3D, scalar→scalar) or the call errors. Returns { copied, destLayer, destProp, destComp, spatial, easeArrayLength, timeOffset, clearedExisting }.

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": {
      "source": "<source>",
      "dest": "<dest>"
    },
    "name": "copy_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
destYes
sourceYes
destCompNoComp (name or { id: N }) for the dest layer if different from the source comp. Defaults to the source comp.
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.
timeOffsetNoSeconds added to every copied key time (shift the copied keyframes). Default 0.
clearExistingNoRemove all existing keyframes on the dest property before copying. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/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 most of it: it discloses the destructive behavior of clearExisting ('removes the dest's existing keyframes first'), the hard error on dimensionality mismatch, and the full return shape. It omits edge behavior such as what happens when the source property has no keyframes, and says nothing about undo grouping or whether the source is left untouched.

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?

The core action is front-loaded in the first clause, followed by the fidelity list, the destructive-flag note, the error condition, and the return shape in a logical order. The density is high but every clause carries operational information, and the enumerated return fields substitute for the absent output schema.

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 tool with nested objects, no annotations, and no output schema, this is close to sufficient: it explains the transfer semantics, the destructive flag, the failure mode, and the response fields. Remaining gaps are secondary — multi-instance targeting and the default-comp resolution are only handled in the schema.

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?

Beyond the 71% schema coverage, the description adds real meaning: timeOffset is defined as seconds added to every copied key time, clearExisting is defined as a pre-copy purge of the destination, and destComp is framed as allowing a different comp than the source. The comp/instance parameters are left entirely to the schema, which is a minor gap rather than a blocker.

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 and resource ('Copy every keyframe from a source property to a destination property') and immediately distinguishes itself from siblings like shift_keyframes or copy_effects by enumerating exactly what is transferred (time, value, interpolation, ease, spatial tangents). An agent can tell what this does and what it does not do without opening the 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?

Usage context is clear: cross-property/cross-comp keyframe duplication, with the precondition that source and dest dimensionality must match (2D→2D, 3D→3D, scalar→scalar) or the call errors. It stops short of explicitly routing the agent away from alternatives such as shift_keyframes or reverse_keyframes, so there are no stated exclusions.

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