Get Timeline Gaps
get_timeline_gapsFind gaps between timeline clips to identify missing content or tighten edits. Filter by track, time window, and minimum gap duration, with paginated results.
Instructions
Find a bounded page of gaps (50 by default; follow pagination.nextOffset) on the timeline between clips. Useful for identifying where content is missing or where clips can be tightened.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_limit | No | Page size (default: 50, maximum: 200). Payload budget may shorten a page. Inspect nextOffset. | |
| track_type | No | Which track type to analyze (default: both) | |
| clip_offset | No | Offset into matching clips (matching gaps for get_timeline_gaps), video before audio (default: 0). | |
| end_seconds | No | Optional exclusive window end; must exceed start_seconds. | |
| sequence_id | No | Sequence name or ID. Uses active sequence if omitted. | |
| track_index | No | Optional zero-based track index within each selected type. | |
| start_seconds | No | Optional inclusive window start; returns overlapping items. | |
| min_gap_seconds | No | Minimum gap duration in seconds to report (default: 0.04 = ~1 frame at 24fps) | |
| expected_cep_target | No | Optional reviewed CEP sequence/clip identity and exact tick ranges. Checked before every generated command; UXP refuses this CEP-only guard. | |
| expected_project_path | No | Optional absolute saved-project path. Every generated CEP command refuses before its body when the active project differs or is unsaved. UXP commands refuse this CEP-only guard; local-only tools do not inspect Premiere. Omit to keep existing behavior. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool completed successfully. | |
| data | No | Tool-specific result data when ok is true; on failure, diagnostic detail when the tool provides it. | |
| tool | Yes | The registered MCP tool name. | |
| error | No | Failure detail when ok is false. | |
| receipt | No | Versioned common mutation receipt; success never implies rendered verification. | |
| idempotency | No | Present when idempotency_key deduplicated this call: replayed is true when the original outcome was returned instead of running again. |