Trim Clip
trim_clipTrim a clip's source in or out point and verify the matching visible timeline edge. Refuse retimed clips and, by default, reject trims that would leave effect keyframes outside the visible clip.
Instructions
Trim exactly one source in/out point and verify the corresponding visible timeline edge. Refuses retimed clips and, by default, trims that would leave effect keyframes outside the visible clip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | Node ID of the clip to trim | |
| 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. | |
| tool | Yes | The registered MCP tool name. | |
| error | No | Failure detail when ok is false. |