sketchup_script
Execute trusted Ruby scripts inside a native SketchUp transaction to create or modify geometry while declaring scopes, new roots, and scene names for controlled workspace changes.
Instructions
Run trusted workspace Ruby inside a native transaction. Do not manage transactions or change documents/edit context in scripts. Declare existing geometry scopes, any new roots and scene names. This is code execution, not an OS sandbox.
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": {
"script": "<script>",
"scope_ids": "<scope_ids>",
"expected_revision": "<expected_revision>",
"operation_id": "<operation_id>",
"purpose": "<purpose>"
},
"name": "sketchup_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| purpose | Yes | ||
| scope_ids | Yes | ||
| scene_names | No | ||
| operation_id | Yes | ||
| expected_revision | Yes | ||
| allow_new_root_entities | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||