Add speed keyframe
add_speed_keyframeAdd or overwrite a speed-ramp (time-remap) keyframe on a video layer, for a rate that CHANGES over the clip. frame is a PROJECT-timeline frame and must sit on the clip (at or after its timeline_start_frame); the curve itself is anchored to the clip, so moving the clip carries the ramp with it and never changes its duration. For a constant slower/faster clip use set_clip_speed instead. rate is the playback rate at frame: 1 = real-time, 0.5 = half-speed, 2 = double-speed. Range: rate in [0.1, 8]. The ramp multiplies the layer's constant speed, and the clip's timeline length is derived from the resulting curve.
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": {
"elementId": "<elementId>",
"frame": "<frame>",
"rate": "<rate>",
"projectId": "<projectId>"
},
"name": "add_speed_keyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | Playback rate at this frame (1 = real-time, in [0.1, 8]). | |
| frame | Yes | Project-timeline frame number. | |
| elementId | Yes | video.<id>. | |
| projectId | Yes | Opaque project id (a v4 UUID, from list_projects/create_project). Selects which existing project this call mutates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the call succeeded. | |
| data | No | The payload, shaped by the tool. | |
| note | No | What to do next when not ready. | |
| error | No | Why it failed. | |
| status | No | For cache-backed readers: whether the answer was ready. | |
| editorUrl | No | Opens this project in the editor. |