Select Clips By Pattern
select_clips_by_patternSelect every Nth clip that matches optional name, duration, time-range, track, or enabled filters, using an offset, and return the count of selected clips.
Instructions
Select every Nth clip (with an offset) among clips that match optional name, duration, time-range, track, and enabled filters, then read back the selection count. Covers 'select every other clip on V1' and similar repetitive selections without changing the timeline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Zero-based index of the first candidate to select (default 0). Must be below every_nth. | |
| every_nth | No | Select one clip out of every N candidates (default 1 = all candidates). | |
| name_regex | No | Case-insensitive ECMAScript 3 compatible regular expression the clip name must match. | |
| track_type | No | Track type to scan (default video). | |
| count_scope | No | Whether the Nth count restarts on each track (default) or runs across all scanned tracks in timeline order. | |
| end_seconds | No | Only clips overlapping before this sequence time. | |
| track_index | No | Restrict to one track index. | |
| name_contains | No | Case-insensitive substring the clip name must contain. | |
| start_seconds | No | Only clips overlapping at or after this sequence time. | |
| add_to_selection | No | Keep the existing selection instead of replacing it (default false). | |
| include_disabled | No | Include disabled clips as candidates (default true). | |
| max_duration_seconds | No | Maximum clip duration. | |
| min_duration_seconds | No | Minimum clip duration. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool completed successfully. | |
| data | No | Tool-specific result data when ok is true. | |
| tool | Yes | The registered MCP tool name. | |
| error | No | Failure detail when ok is false. |