Skip to main content
Glama

set_material

Assign specific materials to components in Sketchup using the Model Context Protocol. Simplify 3D modeling by integrating AI-driven material customization directly into your workflow.

Instructions

Set material for a component

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
materialYes

Implementation Reference

  • The MCP tool handler for 'set_material'. It connects to Sketchup and proxies the call to Sketchup's internal 'set_material' tool via JSON-RPC, passing the component id and material name.
    @mcp.tool() def set_material( ctx: Context, id: str, material: str ) -> str: """Set material for a component""" try: sketchup = get_sketchup_connection() result = sketchup.send_command( method="tools/call", params={ "name": "set_material", "arguments": { "id": id, "material": material } }, request_id=ctx.request_id ) return json.dumps(result) except Exception as e: return f"Error setting material: {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/mhyrr/sketchup-mcp'

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