run_drc
Run KiCad's Design Rules Check on a .kicad_pcb board to report clearance, track, unconnected net, and schematic parity violations. Verify board readiness even if KiCad is closed.
Instructions
Run KiCad's Design Rules Check on a board with kicad-cli. The verdict counts clearance and other violations, unconnected items (unrouted nets), and schematic parity problems; a board with unrouted nets is never PASS. Works whether or not KiCad is open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| severity | No | all | |
| board_path | Yes | A .kicad_pcb file, absolute or relative to the workspace. | |
| all_track_errors | No | Report every track error instead of the first per track. | |
| schematic_parity | No | Also compare the board against the schematic next to it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| kind | Yes | ||
| notes | No | ||
| counts | No | errors, warnings, excluded, unconnected, parity, total. | |
| source | Yes | ||
| command | No | ||
| verdict | Yes | ||
| findings | No | ||
| exit_code | No | ||
| truncated | No | ||
| duration_s | No | ||
| report_path | No | ||
| kicad_version | No |