sketchup_run_ruby
Execute trusted SketchUp Ruby on the UI thread to inspect or edit model entities, materials, tags, and scenes; failures roll back and stdout is captured.
Instructions
Execute trusted SketchUp Ruby on the UI thread. Requires ruby_enabled. Default transaction rolls back failures; do not start nested SketchUp operations. Captures stdout. Running Ruby cannot be forcibly cancelled safely.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "sketchup_run_ruby"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| model_id | No | ||
| active_path | No | ||
| transaction | No | ||
| operation_name | No | MCP Ruby |