Get an Onshape document
onshape_get_documentRetrieve a document's metadata, including its default workspace ID, from a document ID so you can resolve the workspace needed for further CAD operations.
Instructions
Read one document's metadata, including its default workspace id.
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_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. |