get_scene_info
Retrieve comprehensive details about the current 3D scene in Blender, including objects, materials, and settings, to support AI-assisted modeling and analysis.
Instructions
Get detailed information about the current Blender scene
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": "get_scene_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/blender_mcp/server.py:239-250 (handler)The primary handler function for the 'get_scene_info' MCP tool. It uses the @mcp.tool() decorator for registration and schema inference, connects to a Blender instance, sends a 'get_scene_info' command, and returns the JSON-formatted scene information or an error message.
@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)}"