Export Schematic Netlist
netlist_exportBuild the electrical netlist from a schematic — the flat connectivity of every component pin and net, the way KiCad's netlist export works.
Use this to turn a schematic description into machine-readable connectivity: which pins share a net, what each component connects to, and which pins are left unconnected. Feed the result to erc_run for rule checking, or to a BOM/PCB step.
INPUT: schematic — { title?, components: [{ reference, value?, footprint?, libpart?, unit?, dnp?, pins: [{ pin, pinFunction?, pinType?, hiddenPower? }] }], nets: [{ name, netClass?, diffPairPartner?, endpoints: [{ component, pin }] }], noConnects?: [{ component, pin, reason? }] }. Field names follow KiCad's netlist vocabulary (reference, value, footprint, libpart, unit, pin, pinType) so a KiCad .net file maps onto it directly.
OUTPUT: { title?, nets: [{ name, netClass?, endpoints, components, diffPairPartner? }], components: [{ reference, value?, footprint?, libpart?, unit?, dnp?, pinCount, pinNets }], pins: [{ component, pin, net|null, pinFunction?, pinType }], stats: { components, nets, pins, unconnectedPins } }. pinNets maps each pin to its net name, or null when unconnected. Deterministic: the same schematic always yields the same order.
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": "<schematic>"
},
"name": "netlist_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schematic | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||