clip_trim
Trim the start and/or end of a timeline item by frame offsets; negative values extend into handles, linked audio follows, and the edit does not ripple.
Instructions
Trim frames from the head (trimStart) and/or tail (trimEnd) of a timeline item with native SetLeftOffset/SetRightOffset (Resolve 21+; linked audio follows). Negative values extend into handles. Does not ripple.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clip_trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | No | Timeline item unique id (from timeline_get_clips) | |
| confirm | No | Only needed on Resolve < 21, where this falls back to a destructive re-placement | |
| trimEnd | No | ||
| timeline | No | Timeline name or id (default: current timeline) | |
| itemIndex | No | 1-based position of the clip on the track (transitions are not counted) | |
| trackType | No | video | |
| trimStart | No | ||
| trackIndex | No | ||
| updateLinked | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True only when DaVinci Resolve confirmed the operation. | |
| data | No | ||
| tool | Yes | ||
| error | No | ||
| source | No | Where the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone. | |
| status | Yes | ||
| message | Yes | ||
| warnings | Yes |