get_scene_info
Retrieve detailed information about the current Blender scene including objects, materials, and settings to analyze or document your 3D project.
Instructions
Get detailed information about the current Blender scene
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/blender_mcp/server.py:244-255 (handler)The primary handler for the 'get_scene_info' tool. It is decorated with @mcp.tool() for registration and implements the logic by sending a 'get_scene_info' command to the Blender connection and returning the JSON-formatted scene information.@mcp.tool() def get_scene_info(ctx: Context) -> str: """Get detailed information about the current Blender scene""" try: blender = get_blender_connection() result = blender.send_command("get_scene_info") # Just return the JSON representation of what Blender sent us return json.dumps(result, indent=2) except Exception as e: logger.error(f"Error getting scene info from Blender: {str(e)}") return f"Error getting scene info: {str(e)}"
- src/blender_mcp/server.py:246-246 (schema)The docstring defining the tool's purpose and implicitly its schema (no input parameters besides context, returns string)."""Get detailed information about the current Blender scene"""
- src/blender_mcp/server.py:244-244 (registration)The @mcp.tool() decorator registers this function as an MCP tool.@mcp.tool()