Get faces and edges
get_body_detailsLists each part's faces and optional edges with IDs, geometry, area, point, and normal for sketching on faces or applying fillets and chamfers.
Instructions
List the faces (and optionally edges) of each part with their IDs, geometry type,
area, a point on the face and its outward normal, all in the configured length unit. Use
face IDs as plane in create_sketch to sketch on a face, and edge IDs for fillet /
chamfer. Output is capped for very large parts.
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": {
"document_id": "<document_id>",
"element_id": "<element_id>"
},
"name": "get_body_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part_id | No | Only this part (from list_parts). | |
| element_id | Yes | Element (tab) ID: the string after /e/ in the Onshape URL. Get it from get_document. | |
| document_id | Yes | Onshape document ID: the 24-character hex string after /documents/ in the document URL. Get it from list_documents. | |
| workspace_id | No | Workspace ID (the string after /w/ in the URL). Optional - defaults to the document's main workspace. | |
| configuration | No | ||
| include_edges | No | Also list edges (needed for fillet / chamfer). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||