get_selected_ifc_entities
Retrieve IFC entity details for manually selected objects in Blender, returning a JSON-formatted string for focused analysis and interaction.
Instructions
Get IFC entities corresponding to the currently selected objects in Blender.
This allows working specifically with objects the user has manually selected in the Blender UI.
Returns:
A JSON-formatted string with information about the selected IFC entities
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools.py:282-298 (handler)The handler function for the MCP tool 'get_selected_ifc_entities'. It connects to Blender via socket, sends the 'get_selected_ifc_entities' command to the Blender addon, receives the JSON response, and returns it formatted.def get_selected_ifc_entities() -> str: """ Get IFC entities corresponding to the currently selected objects in Blender. This allows working specifically with objects the user has manually selected in the Blender UI. Returns: A JSON-formatted string with information about the selected IFC entities """ try: blender = get_blender_connection() result = blender.send_command("get_selected_ifc_entities") # Return the formatted JSON of the results return json.dumps(result, indent=2) except Exception as e: logger.error(f"Error getting selected IFC entities: {str(e)}") return f"Error getting selected IFC entities: {str(e)}"