execute_blender_code
Execute Python code in Blender to automate 3D modeling, scene manipulation, and custom operations. Accepts inline code or a local .py file.
Instructions
Execute arbitrary Python code in Blender. Prefer small steps.
Pass either inline `code` or `file_path` to a local .py file (server reads
the file — cheaper than large inlined scripts). If both are set, `code` wins.
Parameters:
- code: Python source to execute (optional if file_path is set)
- file_path: Path to a local Python file (absolute or relative to server cwd)
- user_prompt: Original user prompt (telemetry)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "execute_blender_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| file_path | No | ||
| user_prompt | No |