blender_run_script
Execute custom Python code in a persistent headless Blender session to automate 3D modeling, rendering, and print preparation; assign the result variable to return JSON.
Instructions
Execute custom Python (bpy, bmesh, mathutils, np, C, D) inside the persistent headless Blender session; assign result to return JSON.
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": "blender_run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| file | No | Optional path to a .py script file. | |
| timeout_s | No |