script_execute
Execute Python scripts in Blender to automate 3D modeling, animation, and rendering tasks through direct bpy API calls.
Instructions
Execute Python script in Blender (headless).
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": "script_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python script source (Blender/bpy API). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |