Union every body
onshape_boolean_unionMerges all modifiable solid bodies in a Part Studio into one, providing the standard cleanup step before exporting a single part.
Instructions
Merge all modifiable solid bodies into one. The usual cleanup before exporting a single part.
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": {
"doc": "<doc>",
"ws": "<ws>",
"elem": "<elem>"
},
"name": "onshape_boolean_union"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| name | No | Feature name shown in the tree (default "Union bodies"). | |
| validate | No | Re-read the feature list afterwards and fail if the feature regenerated with an error (default true). |