Blender Run Python
blender_run_pythonExecute Python code in Blender's environment via bpy to automate tasks and manipulate 3D scenes.
Instructions
Execute arbitrary Python code in Blender's Python environment via bpy.
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": "blender_run_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code to execute. | |
| timeoutMs | No | Command timeout. |