get_scene_info
Retrieve comprehensive details about the current Blender scene, including object properties, settings, and configurations, enabling efficient scene analysis and management.
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:239-250 (handler)The handler function implementing the 'get_scene_info' tool. It uses the @mcp.tool() decorator for automatic registration in the FastMCP server. Retrieves scene info by sending a command to the Blender addon and returns formatted JSON.@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)}"