Set speed
clip.set_speedSpeed up, slow down, ramp or reverse a clip and its linked clips. rate is constant; curve is a speed ramp over the clip. The clip keeps its source and its length changes; ripple (default) moves later clips. Pitch is kept unless preserve_pitch is false. Returns the new timeline_id (edit that one next), what changed, and where each changed clip now sits.
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": {
"clip_id": "<clip_id>",
"timeline_id": "<timeline_id>"
},
"name": "clip.set_speed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | Constant speed: 2 = twice as fast | |
| curve | No | Speed ramp: rates at fractions of the clip as it plays after the change (first at 0, last at 1; 0.5 is halfway through the new length), linear between. timeline.get gives each point its clip frame and source frame | |
| ripple | No | Move later clips as the clip gets longer or shorter | |
| clip_id | Yes | ||
| preview | No | inline: image in the result; link: URI that renders on read; none | link |
| reverse | No | ||
| interpolate | No | Video, when it shows fewer new frames a second than the sequence (slowed, or a lower frame rate; rate 1 smooths that): none repeats frames; blend crossfades neighbours; motion makes new frames from the movement (minterpolate, slow). Made once as a job of its own (job.list); a render that needs it names the job until it is done, and an export waits. Up to 6000 frames a clip | |
| timeline_id | Yes | Timeline handle; every edit returns a new one | |
| other_tracks | No | Tracks holding neither this clip nor a clip linked to it (linked clips, such as its own sound, always change with it): what they do when this edit moves later clips. stay: they don't move, and the result warns which clips there now play early or late. sync: they get the same change, so titles, overlays and sound stay in step: time taken out here comes out of them too (like range.extract), time added here opens the same gap in them (clips crossing that point are split, as insert does). Locked tracks always stay | stay |
| preserve_pitch | No | Keep voices at their pitch (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | Yes | The version this edit started from | |
| changed | Yes | What the edit added, removed or modified; a clip or transition says its track and where it now sits (frames, end exclusive) | |
| clip_id | No | The clip this edit made or acted on (each tool says which) | |
| preview | Yes | ||
| clip_ids | No | Every clip this edit made or acted on, linked ones included (each tool says which) | |
| track_id | No | ||
| warnings | Yes | ||
| timeline_id | Yes | The new version: edit this one next (older ids stay valid) |