audit_find_invalid_regions
Detect zero-area or unset PCB polygon regions from cancelled pours or corrupted imports to prevent DRC violations and board bloat. Read-only audit surfaces them.
Instructions
Find PCB polygon regions whose area is zero or unset.
These are leftover from cancelled polygon-pour operations or corrupted file imports. They don't render visibly but can throw DRC violations under "Modified Polygon" rules and bloat board size. Read-only: this tool only surfaces them. Auto-delete belongs in a separate user-confirmed mutating flow because misclassification could remove a real (legitimately small) region.
Returns:
Dict with:
- checked: regions inspected (skips primitives owned
by components or dimensions)
- violations: invalid-region count
- items: per-violation {layer, at}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_find_invalid_regions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||