add_rectangle
Draw a graphic rectangle on a KiCad PCB by defining its top-left and bottom-right coordinates, layer, outline width, and fill status.
Instructions
Add a graphic rectangle.
Args: x_min_mm, y_min_mm: Top-left corner in mm. x_max_mm, y_max_mm: Bottom-right corner in mm. layer: Layer name. width_mm: Outline width in mm. filled: Whether the rectangle is solid-filled.
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": {
"x_min_mm": "<x_min_mm>",
"y_min_mm": "<y_min_mm>",
"x_max_mm": "<x_max_mm>",
"y_max_mm": "<y_max_mm>"
},
"name": "add_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | F.SilkS | |
| filled | No | ||
| width_mm | No | ||
| x_max_mm | Yes | ||
| x_min_mm | Yes | ||
| y_max_mm | Yes | ||
| y_min_mm | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||