Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • 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)}"

Other Tools

Related Tools

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/BearNetwork-BRNKC/SketchUp-MCP'

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