media_replace
Replace a clip’s source file with another file so every timeline use switches to the new media; destructive changes require explicit confirmation.
Instructions
Replace a clip's source file with another file (MediaPoolItem.ReplaceClip). Every timeline use switches to the new file. 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": {
"clip": "<clip>",
"path": "<path>"
},
"name": "media_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | Yes | Media pool clip id, exact clip name, or file path | |
| path | Yes | Absolute local file path | |
| 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. |
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 |