Get sketch geometry
onshape_get_sketch_infoRetrieve entities and solved geometry for every sketch in a Part Studio, or target one sketch by feature ID to inspect or validate sketch data.
Instructions
Entities and solved geometry for every sketch in a Part Studio, or for one sketch.
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>",
"elem": "<elem>"
},
"name": "onshape_get_sketch_info"
}
}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>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| sketch | No | Limit to this sketch feature id. |