timeline.close_gaps
Close the empty gaps between SEVERAL clips at once (a ripple: each clip after the first is pulled left against its predecessor, and everything later on the track moves with it, so clips after the span keep their spacing). Select the clips with exactly one of itemIds (every gap inside the span from the earliest to the latest of them is closed), trackId (every clip on one track) or all:true (every clip on every track; add trackType to limit to video or audio) — for 'the whole timeline' use all:true, do NOT list ids. The gap before the earliest selected clip is left alone (use timeline.close_gap for that). Crossfade overlaps are preserved. One undo step. Fails if there are no gaps.
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": {
"projectId": "<projectId>",
"expectedVersion": "<expectedVersion>"
},
"name": "timeline.close_gaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Every clip on every track — narrow with trackType | |
| itemIds | No | These specific clips | |
| trackId | No | Every clip on this track | |
| projectId | Yes | ||
| trackType | No | With all: only tracks of this type | |
| expectedVersion | Yes |