edit_by_transcript
Edit a Final Cut Pro timeline by transcript text: remove or keep only spoken phrases. Cuts ripple and writes a non-destructive copy.
Instructions
Text-based editing: cut timeline content by what was SAID. mode=remove cuts every occurrence of the given phrases (with ripple); mode=keep_only keeps only the matched phrases and cuts everything else in each matched clip (clips with no matches are left untouched). Uses each media file's _transcript.json (auto-transcribes if missing). Non-destructive: writes a _transcript_edit copy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | remove=cut matches out; keep_only=keep only matches | remove |
| model | No | Whisper model size if transcription is needed | base |
| padding | No | Seconds to widen each cut on both sides (0-2, default 0) | |
| phrases | Yes | Spoken phrases to match (case/punctuation-insensitive) | |
| filepath | Yes | Path to FCPXML file | |
| clip_name | No | Only edit the clip with this name | |
| output_path | No | Output path (default: adds _transcript_edit suffix) |