add_polygon
Place a filled or outlined graphic polygon on a PCB layer using 3+ vertices. Ideal for custom silkscreen shapes, logos, or copper areas.
Instructions
Add a graphic polygon.
Args: points: Vertices, each {"x_mm": .., "y_mm": ..} or [x, y]. >= 3 points. layer: Layer name. width_mm: Outline width in mm. filled: Whether the polygon 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": {
"points": "<points>"
},
"name": "add_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | F.SilkS | |
| filled | No | ||
| points | Yes | ||
| width_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||