exec_python
Runs arbitrary Python inside Blender with bpy, math, Vector, and Euler available. Use it as an escape hatch for tasks the other Blender tools do not cover, assigning to result to return a value.
Instructions
Run arbitrary Python inside Blender (bpy, math, Vector, Euler available). Assign to result to return a value.
The escape hatch for anything the other tools do not cover. Runs with the full authority of the Blender process.
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": "exec_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |