Trim Clip
trim_clipTrim a clip's source in/out point while keeping linked audio/video in sync and preventing overlaps or keyframe loss. Specify one edit point; refuses unknown durations or retimed clips.
Instructions
Trim exactly one source in/out point and verify the corresponding visible timeline edge. Requires accessible physical media duration from ffprobe; unknown duration or linked partners using different source files refuse before mutation. Refuses retimed clips, extensions that would overlap the neighbouring clip on the same track, and, by default, trims that would leave effect keyframes outside the visible clip. Linked audio/video partners get the same trim by default (include_linked), applied as the same offset from each partner's own source point so a J/L cut or slipped audio stays in sync; every clip is checked before any is changed. To set a clip's timeline length or extend a still image, use set_clip_duration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | Node ID of the clip to trim | |
| include_linked | No | Also apply the edit to the clip's linked audio/video partners, as Premiere does with linked selection (default: true). | |
| new_in_seconds | No | New source in-point in seconds (relative to the clip's source media). Specify exactly one edit point. | |
| keyframe_policy | No | How to handle effect keyframes beyond the trimmed visible range: reject (default) leaves the timeline unchanged; preserve explicitly keeps them and reports their count. | |
| new_out_seconds | No | New source out-point in seconds (relative to the clip's source media). Specify exactly one edit point. |
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. |