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.
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": {
"source": "<source>"
},
"name": "pcb_drc"
}
}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) |