add_keyframes
Animate layer properties by adding keyframes for opacity, position, scale, rotation, color, stroke, text, and blur; missing timelines and tracks are created automatically.
Instructions
Add keyframes to animate a layer property. Auto-creates timeline + track if missing.
TRACK TARGET FORMAT: "layers.{layerId}.{property}"
AVAILABLE PROPERTIES: opacity → 0.0 - 1.0 transform.x → pixels (horizontal position) transform.y → pixels (vertical position) transform.scaleX → 1.0 = 100% transform.scaleY → 1.0 = 100% transform.rotationDeg → degrees style.fill.color → "#rrggbb" hex string (SNAP — does NOT interpolate) style.fill.opacity → 0.0 - 1.0 style.stroke.width → pixels style.cornerRadius → pixels text.fontSize → pixels text.letterSpacing → pixels effects.blur → 0 - 100
EXAMPLES: target: "layers.bg_circle.opacity" target: "layers.title_text.transform.y" target: "layers.logo.transform.scaleX"
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": {
"timelineId": "<timelineId>",
"target": "<target>",
"keyframes": "<keyframes>"
},
"name": "add_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Track target e.g. "layers.bg_circle.opacity" | |
| keyframes | Yes | Array of keyframes. Minimum 2 keyframes for animation. | |
| requestId | No | ||
| sessionId | No | ||
| timelineId | Yes | ID of the timeline | |
| expectedRevision | No |