List workspaces
onshape_get_workspacesRetrieve all workspaces (branches) for an Onshape document by supplying the document ID, making it easy to see available versions and manage branching.
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>. |