draw_rectangle
Add a rectangle to a 3D model sketch by specifying its two opposite corner points.
Instructions
Draw a rectangle defined by two corner points on a 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": {
"x2": "<x2>",
"y2": "<y2>"
},
"name": "draw_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | No | First corner X in mm | |
| y1 | No | First corner Y in mm | |
| x2 | Yes | Second corner X in mm | |
| y2 | Yes | Second corner Y in mm | |
| sketch_index | No | Sketch index (0-based). Uses last sketch if not specified. |