execute_blender_python
Run custom Python inside Blender to handle lighting, node tweaks, animation, and other tasks outside dedicated tools; assign or print output to return results.
Instructions
Run Python inside Blender for anything the other tools do not cover (custom
lighting, node tweaks, animation). Available names: bpy, mn (Molecular Nodes),
mg (Molecular Nodes geometry nodes), get_molecule(name). Assign to result or
print() to return output. Prefer the dedicated tools when they fit.
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": "execute_blender_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |