Plan Beat Montage
plan_beat_montagePlan a beat-synced montage by carving a beat grid into shots, assigning source clips in order, and generating timeline batch placements, trim ranges, and cut markers.
Instructions
Plan a beat-synced montage: carve a detect_beats grid into shots every N beats (merging short and splitting long spans), assign clips in order, and emit add_to_timeline_batch chunks, trim ranges, and cut markers. Local-only and deterministic; never changes Premiere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clips | Yes | Source clips available for the montage, in the caller's preferred order. | |
| order | No | Clip assignment order; defaults to as_given. round_robin interleaves priority groups. | |
| frame_rate | No | Sequence frame rate used to snap shot boundaries; defaults to 30. | |
| allow_reuse | No | When true, cycle through clips again once they run out (continuing from where each stopped); otherwise the montage stops. | |
| beat_seconds | Yes | Strictly ascending beat times in sequence seconds, such as beatTimesSeconds from detect_beats. | |
| max_shot_seconds | No | Longer spans split at intermediate beats; defaults to 6. | |
| min_shot_seconds | No | Shorter spans merge with the next beats; defaults to 0.4. | |
| start_beat_index | No | Index of the first beat to cut on; defaults to 0. | |
| audio_track_index | No | Target audio track for linked audio; defaults to 0. | |
| cut_every_n_beats | No | Beats per shot; defaults to 2. | |
| video_track_index | No | Target video track for every placement; defaults to 0. | |
| 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. | |
| total_duration_seconds | No | Optional cap on montage length measured from the first cut. |
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. |