Query Netlist Connectivity
netlist_queryAsk a net-level question about a schematic: what connects to what.
MODES (query):
• "net" — the full membership of one net (net required).
• "pin" — which net a component pin is on (component + pin required).
• "component" — every net a component touches (component required).
• "shares" — do two pins share a net (component+pin and otherComponent+otherPin).
• "unconnected" — every pin with no net.
• "summary" — counts only.
INPUT: schematic (same shape as netlist_export) plus the mode selector and its arguments.
OUTPUT: { query, found, ... } — for "net", the net with its endpoints; for "pin", the net name or null; for "component", the list of nets and the pin→net map; for "shares", a boolean; for "unconnected", the list of pins; for "summary", the stats.
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>",
"query": "<query>"
},
"name": "netlist_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | No | mode "net": the net name to look up. | |
| pin | No | mode "pin"/"shares": the pin number. | |
| query | Yes | Which question to answer. | |
| otherPin | No | mode "shares": the second pin number. | |
| component | No | mode "pin"/"component"/"shares": the reference designator. | |
| schematic | Yes | ||
| otherComponent | No | mode "shares": the second reference designator. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||