clip_split
Split a timeline item at a chosen absolute frame into two items; this destructive edit requires explicit confirmation and does not preserve grades, effects, or transforms.
Instructions
Split a timeline item at an absolute timeline frame into two items. Implemented as a re-placement (remove item, append source range again) because the API has no direct trim/move/split: grades, effects and transforms on the original item are not carried over. DESTRUCTIVE: requires confirm: true after explicit user confirmation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"frame": "<frame>"
},
"name": "clip_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | ||
| itemId | No | Timeline item unique id (from timeline_get_clips) | |
| confirm | No | Destructive operation: must be true, and only after the user explicitly confirmed it. Without it the tool only explains what it would do. | |
| 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 | |
| trackIndex | 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 |