get_object_info
Retrieve detailed information about any object in your Blender scene by specifying its name, including properties, location, and type data for informed 3D modeling decisions.
Instructions
Get detailed information about a specific object in the Blender scene.
Parameters:
- object_name: The name of the object to get information about
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_name | Yes |
Implementation Reference
- src/blender_mcp/server.py:257-273 (handler)The handler function for the 'get_object_info' MCP tool. It is registered via the @mcp.tool() decorator, which also implies schema from type hints (ctx: Context, object_name: str -> str). The function forwards the request to the Blender addon via send_command and returns the JSON-formatted result.@mcp.tool() def get_object_info(ctx: Context, object_name: str) -> str: """ Get detailed information about a specific object in the Blender scene. Parameters: - object_name: The name of the object to get information about """ try: blender = get_blender_connection() result = blender.send_command("get_object_info", {"name": object_name}) # 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 object info from Blender: {str(e)}") return f"Error getting object info: {str(e)}"