List elements in a workspace
onshape_get_elementsList all elements (tabs) in an Onshape workspace, including Part Studios, assemblies, drawings, and Feature Studios. Filter by element type to find specific components quickly.
Instructions
List the elements (tabs) in a workspace: Part Studios, assemblies, drawings, Feature Studios.
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>",
"ws": "<ws>"
},
"name": "onshape_get_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| type | No | Only return elements of this type. |