draw_polygon
Adds a regular polygon with corners on a construction circle from center, radius, and side count. Dimension the circle to resize it; returns side-line and circle IDs.
Instructions
Add a regular polygon whose corners lie on a circle of the given radius; the first corner is at angle 0. It is made of lines tied to a construction circle, so dimension that circle to resize the polygon; in a part that diameter becomes a dimension when the sketch is closed, unless set first. Returns line_ids (the sides, in order) and circle_id, the ids list_sketch_entities shows.
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": {
"cx": "<cx>",
"cy": "<cy>",
"radius": "<radius>",
"sides": "<sides>"
},
"name": "draw_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cx | Yes | X of the centre | |
| cy | Yes | Y of the centre | |
| unit | No | mm, cm, m, inch or ft | |
| sides | Yes | How many sides, 3 to 100 | |
| radius | Yes | Radius of the circle the corners lie on |