set_keyframes
Add or replace keyframes on a timeline layer property to control animation timing and values, including custom Bezier easing for precise motion.
Instructions
Add or replace keyframes on an explicit timeline and layer property. Supports customBezier with {type:"customBezier",bezier:{cx1,cy1,cx2,cy2}}. Easing belongs to the starting keyframe.
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>",
"layerId": "<layerId>",
"property": "<property>",
"keyframes": "<keyframes>"
},
"name": "set_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | ||
| property | Yes | ||
| keyframes | Yes | ||
| requestId | No | ||
| sessionId | No | ||
| timelineId | Yes | ||
| expectedRevision | No |