feat: add run_erc tool for schematic electrical rules checking

This commit is contained in:
Tom
2026-03-06 12:32:35 +01:00
parent 11d7e49e74
commit 23946a211a
3 changed files with 133 additions and 0 deletions

View File

@@ -1513,6 +1513,21 @@ SCHEMATIC_TOOLS = [
"required": ["schematicPath", "sourceRef", "targetRef"]
}
},
{
"name": "run_erc",
"title": "Run Electrical Rules Check (ERC)",
"description": "Runs the KiCAD Electrical Rules Check (ERC) on a schematic via kicad-cli and returns all violations with type, severity, and location. Use this to verify the schematic is electrically correct before generating a netlist or exporting.",
"inputSchema": {
"type": "object",
"properties": {
"schematicPath": {
"type": "string",
"description": "Path to the .kicad_sch schematic file"
}
},
"required": ["schematicPath"]
}
},
{
"name": "generate_netlist",,
"title": "Generate Netlist",