execute_python
Run custom Python against DaVinci Resolve when no dedicated tool fits, using exposed Resolve, project, media pool, timeline, and context helpers; assign a result or read captured output.
Instructions
Run arbitrary Python against Resolve when no tool fits. Pre-defined names: resolve,
project (may be None), media_pool, timeline (current, may be None), ctx (lookup helpers:
ctx.item(uid), ctx.clip(ref), ctx.folder(path), ctx.timeline(ref), ctx.graph(target)...).
Assign to result to return a value (Resolve objects come back as references); stdout and
stderr are captured. Full OS access: use with care.
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 |