execute_python
Run Python code directly within DaVinci Resolve to automate tasks, manipulate timelines, manage media, and control Fusion operations through script execution.
Instructions
Execute arbitrary Python code in DaVinci Resolve.
Args: code: The Python code to execute
Returns: The result of the code execution
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": {
"code": "<code>"
},
"name": "execute_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |