get_scene_info
Retrieve detailed data about the current Blender scene, enabling efficient analysis and management of 3D model assets within the Tripo MCP Server environment.
Instructions
Get detailed information about the current Blender scene
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:285-297 (handler)The handler function for the 'get_scene_info' MCP tool. Decorated with @mcp.tool() for registration. Connects to Blender addon via socket, sends 'get_scene_info' command, and returns formatted JSON response of the scene details.@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/server.py:285-285 (registration)The @mcp.tool() decorator registers the get_scene_info function as an MCP tool.@mcp.tool()