pcb_drc
Run a headless Design Rule Check on a KiCad PCB and return violations grouped by rule with severities, coordinates, and totals. Fails explicitly on error to avoid false clean reports.
Instructions
Run headless Design Rule Check on a PCB and return violations grouped by rule with severities, mm coordinates, totals, and the JSON report path. Fails closed (explicit error) if the run fails rather than reporting a false clean pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Board name from config OR path to .kicad_pcb (or sibling .kicad_sch) | |
| severity | No | Filter: all, error, warning, or exclusion | all |
| max_violations | No | Cap the number of individual violations listed (totals stay exact) |