execute_blender_code_for_cli
Execute trusted Python code in a fresh background Blender process against a specified .blend file to automate scene tasks or run headless scripts.
Instructions
Run trusted Python in a fresh background Blender process on the specified blend file.
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": {
"blend_file": "<blend_file>",
"code": "<code>"
},
"name": "execute_blender_code_for_cli"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No | ||
| blend_file | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||