check_schematic_pin_pad_mapping
Compares schematic symbol pins with footprint pads using KiCad netlist update rules to flag missing pads, unnumbered pins, missing footprints, and pads without nets.
Instructions
Compare the pins of each symbol of a schematic with the pads of its footprint.
The tool uses the netlist that "Update PCB from Schematic" gives pcbnew (kicad-cli of the installed KiCad), and the rules of that update. A pin number that no pad has, a pin with no number, and a symbol whose footprint KiCad does not find are errors. A pad with a number that no pin has gets no net: this is a warning. A symbol has the pins of the units that the schematic has. The pads come from the library footprints, as a new footprint on the board gets them. For a board that has the footprints, run_drc with the schematic parity compares the footprints of the board. For a library symbol and a footprint, use check_pin_pad_mapping. When the netlist job finds annotation errors (a duplicate reference can join two symbols in one component), the tool lists them.
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_path": "<schematic_path>"
},
"name": "check_schematic_pin_pad_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| references | No | Optional references to check, for example ["U1", "J3"]. All symbols of the netlist if empty. | |
| schematic_path | Yes | A schematic of the project (.kicad_sch). For a sub-sheet or an other top-level sheet, the tool uses the project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |