sketch_rectangle
Draws a rectangle in an open SolidWorks sketch by specifying center coordinates and width/height in millimeters.
Instructions
Draws a rectangle in the open sketch, given centre and size (mm).
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": {
"width_mm": "<width_mm>",
"height_mm": "<height_mm>"
},
"name": "sketch_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width_mm | Yes | Rectangle width in mm | |
| height_mm | Yes | Rectangle height in mm | |
| center_x_mm | No | ||
| center_y_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |