Sketch a circle
onshape_sketch_circleAdds a sketch with one circle to an Onshape document by defining center, radius, and sketch plane or face.
Instructions
Add a sketch holding one circle.
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>",
"center": "<center>",
"radius": "<radius>"
},
"name": "onshape_sketch_circle"
}
}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. | |
| name | No | Feature name shown in the tree (default "Sketch circle"). | |
| plane | No | Default plane to sketch on (default Front). | |
| center | Yes | Circle centre. As [x, y] inches or "x,y". | |
| radius | Yes | Radius in inches. | |
| validate | No | Re-read the feature list afterwards and fail if the feature regenerated with an error (default true). | |
| plane_feature | No | Sketch on a face created by this feature id instead of a default plane. |