Get gaps of a track
get_track_gapsFind empty stretches on one Premiere Pro track, before the first clip and between clips, and return each gap's start, end, duration, and next clip index for removal or review.
Instructions
Find the empty stretches of one track: before the first clip and between clips; time after the last clip is not a gap. Returns each gap's start, end and duration in seconds and the index of the clip after it, plus count and total_duration. Read-only: use close_gap_at or close_all_gaps to remove gaps, find_sequence_gaps for every track.
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>"
},
"name": "get_track_gaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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). | |
| min_duration | No | Ignore gaps shorter than this, in seconds. Default 0; gaps shorter than half a frame are never reported. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| include_leading | No | Also report the gap between the sequence start and the first clip. Default true. |