check_pin_pad_mapping
Compares symbol pin numbers with footprint pad numbers using KiCad's Update PCB from Schematic rules, flagging pins without pads as errors and pads without pins as warnings.
Instructions
Compare the pin numbers of a library symbol with the pad numbers of a footprint.
The tool uses the rules of "Update PCB from Schematic" of the installed KiCad. A pin number that no pad has, and a pin with no number, are errors. A pad with a number that no pin has gets no net: this is a warning. KiCad 10 reads a stacked pin number ("[1-4]") as more than one pad number. The check uses the pins of all units, for each body style.
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": {
"symbol_lib_id": "<symbol_lib_id>"
},
"name": "check_pin_pad_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | No | Optional project (.kicad_pro, .kicad_sch, .kicad_pcb or its directory), to include its libraries. | |
| symbol_lib_id | Yes | The library ID of the symbol, for example "Device:R". | |
| footprint_lib_id | No | Optional library ID of the footprint, for example "Resistor_SMD:R_0603_1608Metric". If empty, the tool uses the Footprint field of the symbol. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |