replace_clip
Swap a timeline clip with another project media item, optionally preserving source in/out, enabled state, Motion values, and effects to maintain edits.
Instructions
Replaces a clip on the timeline with another media item.
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": {
"clipId": "<clipId>",
"newProjectItemId": "<newProjectItemId>"
},
"name": "replace_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clipId | Yes | The ID of the clip to replace | |
| preserveEffects | No | When true (default), restore source in/out, the enabled flag, Motion values, and other effects on the replacement. When false, the new item is placed at full duration with default Motion. | |
| newProjectItemId | Yes | The ID of the new project item to use |