execute_ruby
Execute Ruby code inside SketchUp to automate 3D modeling tasks, access the full Ruby API, and modify model data directly.
Instructions
Execute arbitrary Ruby code inside SketchUp. The code runs in the context of the SU_MCP module and has full access to the SketchUp Ruby API (Sketchup, Geom, UI, etc.). Returns the result of the last expression and any puts/print output. Use with care — this can modify or delete model data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Ruby source code to execute |