sch_erc
Detect electrical rule violations in KiCad schematics by running ERC, with JSON output and exit code on errors for automation.
Instructions
Run ERC on a .kicad_sch 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": {
"schematic": "<schematic>"
},
"name": "sch_erc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | erc.json | |
| format | No | json | |
| schematic | Yes | ||
| exit_code_violations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||