Update keyframe
update_keyframeModify a single keyframe by index or time: change its value, move it to a new time, apply an interpolation or ease preset, or select/deselect it while preserving ease and tangent attributes.
Instructions
Change one keyframe (picked by 1-based index or by time): new value, move it to newTime (all ease/tangent attributes are preserved; a key already at newTime is replaced), set an interpolation/ease preset, or (de)select it.
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": "update_keyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| time | No | Pick the keyframe at this time instead of by index. | |
| index | No | 1-based keyframe index. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| value | No | Value: number (1D), array ([x,y] / [x,y,z] / color), '#RRGGBB' for colors, string or {text,...} for Source Text, {vertices,inTangents,outTangents,closed} for paths. | |
| newTime | No | Move the key to this time. | |
| property | Yes | Property 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'. | |
| selected | No | ||
| interpolation | No | Keyframe interpolation / ease preset. |