Add Sketch Rectangle
add_rectangleDraw a closed, axis-aligned rectangle in the open sketch from two opposite corners in mm, for blocks, plates, and rectangular cut-outs. Returns id, width, height, and area.
Instructions
Draw a closed, axis-aligned rectangle in the open sketch from two opposite corners, in mm.
Use it for blocks, plates and rectangular cut-outs. Needs: an open sketch
(create_sketch). Changes: adds four connected lines. Returns: rectangle with
id, corner1, corner2, width, height and area. Its id is what
add_sketch_constraint and add_sketch_dimension take.
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": {
"input_data": "<input_data>"
},
"name": "add_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The rectangle. Give `x1`, `y1`, `x2`, `y2` (mm; or `corner1_x` ... `corner2_y`); `construction` is off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||