Edit single keyframes
edit_keyframesTune existing motion one keyframe at a time: add a keyframe, move one in time, change its value or easing (or hold), delete one, or shift a layer's whole motion earlier or later. Keyframes are found by track and time (read them with get_design timeline_detail); a delete that empties a track removes it. Returns what was edited. If one edit cannot apply, none do; saved as a new revision that undo reverts. Use it for small timing and value fixes; to replace a whole track use animate with tracks, and to remove motion clear_animation.
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": {
"page_id": "<page_id>",
"edits": "<edits>",
"intent": "<intent>"
},
"name": "edit_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | Changes applied in order; if one cannot apply, none do. | |
| intent | Yes | One short sentence: what you change and why. Kept in the design history. | |
| page_id | Yes | The page to work on, as returned by create_design. |