Close all gaps
close_all_gapsRemoves empty space between clips in a Premiere Pro sequence by packing selected tracks or shifting all tracks together to preserve sync.
Instructions
Remove empty space between clips. mode "per_track" (default) packs each selected track on its own: every clip moves left until it touches the previous one (linked audio and video can lose sync if their tracks have different gaps). mode "together" removes only the time ranges that are empty on every track and shifts all tracks by the same amount, so sync is kept. Select one track with track_type + track_index, one type with track_type, or everything by default. Returns the gaps closed and the sequence duration before and after.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "close_all_gaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "per_track" (default) or "together". | |
| track_type | No | Restrict to one track type: "video" or "audio". Omit for both. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | Restrict to one 0-based track index (needs track_type). Omit for every track of that type. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| include_leading | No | Also close the empty space before the first clip. Default true. |