Call any Onshape REST endpoint
onshape_requestMake authenticated calls to any Onshape REST endpoint for operations not covered by dedicated tools, using method, path, body, and query parameters.
Instructions
Make an authenticated request to an arbitrary Onshape REST endpoint, for anything the dedicated tools do not cover. Paths start with /api/ and are documented at https://cad.onshape.com/glassworks/explorer. Prefer a dedicated tool when one exists — they normalise the response and validate the result.
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_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body, for POST. | |
| path | Yes | API path, e.g. /api/v6/documents/d/{did}/w/{wid}/elements. Must begin with /api/. | |
| method | Yes | HTTP method. | |
| params | No | Query string parameters. |