pcb_add_rectangle
Add a graphic rectangle to a PCB board by specifying the two opposite corner coordinates, layer, and line width for board outlines or design elements.
Instructions
Add a board graphic rectangle.
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>"
},
"name": "pcb_add_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Edge_Cuts | |
| x1_mm | Yes | ||
| x2_mm | Yes | ||
| y1_mm | Yes | ||
| y2_mm | Yes | ||
| width_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |