Find gaps in a sequence
find_sequence_gapsIdentify empty stretches on every track in a sequence, including before the first clip and between clips, and return each gap’s timing and neighboring clip indices.
Instructions
Find the empty stretches on every track of a sequence: before the first clip (from time 0) and between clips; time after the last clip is not a gap. Returns one entry per gap with track_type, track_index, start, end and duration in seconds and the indices of the neighbouring clips, plus count and total_gap_duration. Empty tracks report nothing. Use get_track_gaps for one track, close_all_gaps to remove gaps.
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": "find_sequence_gaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_type | No | Only look at "video" or "audio" tracks. Omit for both. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| min_duration | No | Ignore gaps shorter than this, in seconds. Default and minimum: half a frame (smaller values are raised to it). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| include_leading | No | Also report the gap between time 0 and the first clip of a track. Default true. |