trace_netlist_connection
Trace component pin connections from a KiCad netlist by returning the nets for each pin and all pins on those nets; optionally filter to one pin.
Instructions
Give the nets of the pins of a component, and the pins on each net.
The netlist of kicad-cli is the most exact source for the connections. Make it with generate_netlist, and again after a change of the schematic.
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": {
"netlist_path": "<netlist_path>",
"reference": "<reference>"
},
"name": "trace_netlist_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference | Yes | The reference of the component, for example "R16". | |
| pin_number | No | Optional pin number, for example "1". Empty: all pins. | |
| netlist_path | Yes | A netlist file of generate_netlist. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |