Skip to main content
Glama

execute_blender_code

Execute Python code within Blender to perform custom operations like mesh creation, node setups, and batch processing when structured tools are insufficient.

Instructions

Execute arbitrary Python code inside Blender and return the captured stdout.

Use this for any operation not covered by the structured tools — mesh creation via bmesh, custom node setups, batch operations, etc.

Args: code: Python code to execute in Blender's Python environment. bpy is available but must be imported in the code. user_prompt: The original user prompt that led to this tool call (for telemetry).

Returns: Dict with 'output' (captured stdout) and 'success' boolean.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
user_promptNo
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jabberwock/blend-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server