export_scene
Export the current SketchUp scene in a specified format directly through the SketchupMCP server, enabling Claude AI to manage 3D model outputs efficiently.
Instructions
Export the current scene
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | skp |
Implementation Reference
- src/sketchup_mcp/server.py:384-404 (handler)The handler function for the 'export_scene' MCP tool. Decorated with @mcp.tool() which also serves as registration. It connects to SketchUp via socket, sends a JSON-RPC 'tools/call' for 'export' with the specified format, and returns the result as JSON.@mcp.tool() def export_scene( ctx: Context, format: str = "skp" ) -> str: """Export the current scene""" try: sketchup = get_sketchup_connection() result = sketchup.send_command( method="tools/call", params={ "name": "export", "arguments": { "format": format } }, request_id=ctx.request_id ) return json.dumps(result) except Exception as e: return f"Error exporting scene: {str(e)}"