manage_zone
Create, refill, or delete copper zones on a PCB. Specify outline points, net, and layer to create; use dry_run to preview before applying.
Instructions
Creates, refills, or deletes a copper zone on the board. Actions: 'create' defines a new zone with a polygon outline on a net and layer. 'refill' recomputes fill for all zones (can be slow on complex boards). 'delete' removes a zone by its identifier from list_zones output. Zone creation requires at least 3 outline points forming a closed polygon. This creates one undo step per action: Ctrl+Z reverts it. Use dry_run=true to preview the action without applying it. WARNING: This modifies the board. Deleting a zone removes its copper fill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | Copper layer for the zone. Required for 'create'. Valid values: F.Cu, B.Cu, In1.Cu through In30.Cu. Ignored for 'refill' and 'delete'. | |
| action | Yes | The zone operation to perform. Valid values: 'create' (new zone), 'refill' (recompute all fills), 'delete' (remove a zone by ID). | |
| dry_run | No | If true, compute and report what would happen without actually modifying zones. Defaults to false. | |
| zone_id | No | Zone identifier to delete. Required for 'delete'. Get zone IDs from list_zones output. Ignored for 'create' and 'refill'. | |
| net_name | No | Net to assign to the zone. Required for 'create'. Ignored for 'refill' and 'delete'. | |
| outline_mm | No | Polygon outline points in millimeters. Required for 'create'. Must contain at least 3 points. Points form a closed polygon (last point connects back to first automatically). Ignored for 'refill' and 'delete'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |