run_erc
Run Electrical Rules Check (ERC) on KiCad schematics to identify electrical violations. Automatically resolves sub-sheet context and provides a JSON report.
Instructions
Run Electrical Rules Check (ERC) on a schematic.
Auto-redirects to root schematic for sub-sheets to avoid false
positives from missing hierarchical context.
Returns JSON report with violations.
Args:
schematic_path: Path to .kicad_sch file. Optional; omit to use the configured default.
output_dir: Directory for report file (default: same as schematic).
Optional; omit to use the configured default.
project_path: Path to .kicad_pro file for explicit root resolution
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | ||
| project_path | No | ||
| schematic_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| source | Yes | ||
| violations | Yes | ||
| kicad_version | Yes | ||
| violation_count | Yes |