onshape_api_request
Call any Onshape REST endpoint directly to handle operations not covered by other tools, using a relative or full API path.
Instructions
Call any Onshape REST endpoint directly, for anything the other tools don't cover. path is relative to /api/v10, e.g. "/documents/d//w//elements" (or pass a full /api/vX/... path). See https://cad.onshape.com/glassworks/explorer for the full API.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "onshape_api_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| query | No | ||
| method | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |