Detect Repeated Takes
detect_repeated_takesDetect duplicate sentence takes in a word timeline using token similarity, then plan removal of all but the kept take. Returns take groups and removal ranges for review without modifying Premiere.
Instructions
Detect repeated sentence takes (retakes) in a word timeline using token similarity within a time window, and plan removal of all but the kept take. Returns take groups, removal and keep ranges, and apply routes. Local-only; never changes Premiere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | Which take in each group to keep; defaults to last. | |
| min_words | No | Minimum tokens a sentence needs before it is compared; defaults to 4. | |
| frame_rate | No | Timebase used to snap ranges to whole frames; defaults to 30. | |
| max_groups | No | Maximum take groups to return; defaults to 64. | |
| handle_frames | No | Frames of handle left inside each removal so cuts are not tight; defaults to 1. | |
| word_timeline | Yes | Caller-supplied word-timed transcript for one Premiere source item. Words must be ordered by start time and bound to the transcript revision returned by get_clip_transcript_uxp. | |
| max_gap_seconds | No | Only sentences starting within this many seconds of an earlier candidate are compared; defaults to 20. | |
| similarity_threshold | No | Token Jaccard/containment similarity needed to group two sentences; defaults to 0.8. |
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. |