execute
Run Python scripts inside Blender to build or modify scenes, apply bpy and draco operations, and return capped output with one undo step per call.
Instructions
Run Python in Blender (bpy, mathutils, draco, state available). Print a short
summary or set result; output is capped at max_output chars. One undo step per call.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No | ||
| max_output | No |