add_polygon
Add a graphic polygon to a PCB board by defining vertex points in millimeters, layer, and fill settings.
Instructions
Add a graphic polygon to the board.
points_mm should be a list like [{"x_mm": 0, "y_mm": 0}, ...]
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": {
"points_mm": "<points_mm>",
"layer_name": "<layer_name>"
},
"name": "add_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filled | No | ||
| width_mm | No | ||
| points_mm | Yes | ||
| layer_name | Yes |