List workspaces
onshape_get_workspacesLists all workspaces (branches) for a given Onshape document ID, so users can find the correct workspace alias for accessing parts, assemblies, and other document elements.
Instructions
List a document's workspaces (branches).
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>"
},
"name": "onshape_get_workspaces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. |