delete_component
Remove a specific component from Sketchup by its unique ID, enabling precise control over 3D models and scene adjustments within the SketchupMCP integration with Claude AI.
Instructions
Delete a component by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/sketchup_mcp/server.py:292-311 (handler)Handler function for the 'delete_component' MCP tool. It forwards the delete request to the SketchUp extension via JSON-RPC over socket, using the provided component ID.@mcp.tool() def delete_component( ctx: Context, id: str ) -> str: """Delete a component by ID""" try: sketchup = get_sketchup_connection() result = sketchup.send_command( method="tools/call", params={ "name": "delete_component", "arguments": {"id": id} }, request_id=ctx.request_id ) return json.dumps(result) except Exception as e: return f"Error deleting component: {str(e)}"