run_python
Execute custom Python code in DaVinci Resolve to access API features not covered by dedicated tools, ideal for one-off inspections.
Instructions
Run DaVinci Resolve scripting-API Python in the server process.
Prefer the real tools: they wrap known API footguns, echo context, and return structured results. Reach for this only where no tool fits — an API corner the catalog does not cover yet, or a one-off inspection.
The namespace has resolve, project_manager, project and timeline pre-bound.
The returned value is the trailing expression, or a result variable if you set one;
stdout is captured and returned alongside it. Long values are truncated.
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": "run_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||