get_scene_info
Retrieve detailed information about the current Blender scene, including objects, materials, and settings, to analyze and manage 3D projects.
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-251 (handler)The primary handler function for the 'get_scene_info' MCP tool, registered via the @mcp.tool() decorator. It establishes a connection to the Blender addon, sends the 'get_scene_info' command, and returns the result as 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)}"
- src/blender_mcp/server.py:239-239 (registration)The @mcp.tool() decorator registers the get_scene_info function as an MCP tool.@mcp.tool()
- src/blender_mcp/server.py:879-880 (helper)Comment in the asset_creation_strategy prompt recommending the use of get_scene_info() to check the scene before other operations.0. Before anything, always check the scene from get_scene_info() 1. First use the following tools to verify if the following integrations are enabled: