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)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| file_path | No | ||
| user_prompt | No |