add_rectangle
Add a rectangle to a PCB board layer. Specify corner positions, line width, and fill status.
Instructions
Add a graphic rectangle to the board.
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_mm": "<x1_mm>",
"y1_mm": "<y1_mm>",
"x2_mm": "<x2_mm>",
"y2_mm": "<y2_mm>",
"layer_name": "<layer_name>"
},
"name": "add_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1_mm | Yes | ||
| x2_mm | Yes | ||
| y1_mm | Yes | ||
| y2_mm | Yes | ||
| filled | No | ||
| width_mm | No | ||
| layer_name | Yes |