get_elements
Retrieve all elements in an Onshape workspace, including Part Studios and Assemblies. Optionally filter by element type to locate specific CAD components.
Instructions
Get all elements (Part Studios, Assemblies, etc.) in a workspace
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": {
"documentId": "<documentId>",
"workspaceId": "<workspaceId>"
},
"name": "get_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Document ID | |
| elementType | No | Optional filter by element type (e.g., 'PARTSTUDIO', 'ASSEMBLY') | |
| workspaceId | Yes | Workspace ID |