trim_clip
Trim exactly one source in/out point by specifying seconds, updating the visible timeline edge. Invalid trims are rejected for retimed clips and when effect keyframes would fall outside the visible range.
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. |