export_drc_report
Run a KiCad DRC on a board and save its JSON report to a file, with an optional custom output path.
Instructions
Run the DRC of kicad-cli on a board and copy its JSON report into a file.
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": {
"pcb_path": "<pcb_path>"
},
"name": "export_drc_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pcb_path | Yes | The .kicad_pcb file. | |
| output_path | No | Optional file of the report. Default: <board>_drc_report.json next to the board. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |