Sketch Rectangle
sketch_rectangleDraw a rectangle in the active sketch using millimeter coordinates, with optional center-based placement defined by a center point and corner.
Instructions
Draws a rectangle in the active sketch (dimensions in mm). center_based=True uses (x1, y1) as center and (x2, y2) as corner.
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": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "sketch_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| center_based | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||