Skip to main content
Glama

export_scene

Export the current scene from Sketchup in a specified format using the Model Context Protocol, enabling streamlined 3D model sharing and integration.

Instructions

Export the current scene

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoskp

Implementation Reference

  • The handler function decorated with @mcp.tool() that implements the export_scene tool. It connects to Sketchup via socket, sends a JSON-RPC request to call the 'export' tool with the specified format, and returns the JSON result.
    @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)}"

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