Skip to main content
Glama

get_scene_info

Retrieve detailed information about the current Blender scene including objects, materials, and structure for analysis and manipulation.

Instructions

Get detailed information about the current Blender scene

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_scene_info' tool. It connects to the Blender addon via a persistent socket connection, sends the 'get_scene_info' command, and returns the scene information as a formatted JSON string. Includes error handling and logging.
    @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)}"
  • The @mcp.tool() decorator registers the get_scene_info function as an MCP tool, using its signature and docstring for schema inference.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wenyen-hsu/blender-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server