Close the gap at a time
close_gap_atClose a gap on one track at a specified timeline time by shifting later clips left to meet the previous clip or time 0; optionally move linked clips to preserve sync.
Instructions
Close the empty space that contains a timeline time on one track: the clips after it on that track move left until they touch the previous clip (or time 0). Only that track moves; with include_linked=true the linked audio/video clips of the moved clips move by the same amount when they have room (those that do not are listed in linked_not_moved). Fails with NOT_FOUND when a clip occupies that time or nothing follows it. Returns the gap that was closed and the number of clips moved.
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": {
"track_type": "<track_type>",
"track_index": "<track_index>",
"time": "<time>"
},
"name": "close_gap_at"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | Any timeline time inside the gap, in seconds. | |
| track_type | Yes | Track type: "video" or "audio". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | Yes | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| include_linked | No | Move the linked clips on other tracks by the same amount to keep sync. Default false. |