Trace XNET from a pin
query_xnet_by_pin_nameTraces full electrical-node connectivity from a component pin (REFDES.PIN) through series parts, stopping at power and ground nets, to return the complete XNET and its unique topology.
Instructions
Get full XNET connectivity starting from a component pin, named REFDES.PIN (e.g. U1.A5, R10.1). Traces through series components, so the result is the whole electrical node; circuit_hash identifies unique topologies. Traversal stops at power and ground nets, recognised by name (VCC*, VDD*, 3V3, GND, GND1, VSS, ...), by a supply or ground pin on the net, or by carrying more than 40 pins; visited_nets names every net the result crossed. skip_types leaves series passives out, for example skip_types=['C','L','R']. components_by_mpn is paged like query_xnet_by_net_name's. A pin on no net reads as the net NC and returns an empty result. component_notes names the parts with no MPN. net_properties gives the design's own properties of the nets listed, such as DIFFERENTIAL_PAIR (the pair a net belongs to: Capture's own property, an Altium Differential Pair directive on both nets, or KiCad's +/- or P/N pair naming less pairs carrying a supply pin) and VOLTAGE, where the design sets them. Rejects pins on a net named as a ground (GND, GND1, AGND, VSS, ...) with an error.
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": {
"design": "<design>",
"pin_name": "<pin_name>"
},
"name": "query_xnet_by_pin_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | Yes | Path to design file | |
| offset | No | Index of the first components_by_mpn entry to return, from next_offset. Default: 0. | |
| pin_name | Yes | Pin spec: REFDES.PIN (e.g., U2.10, U1.A5) | |
| skip_types | No | Component prefixes to exclude | |
| include_dns | No | Include DNS components | |
| max_results | No | Max components_by_mpn entries to return. Default: 50. | |
| design_variant | No | Design variant name from list_designs' design_variants. Required when the design records named variants, which are its only builds. <Default> (alias: default) is the one build of a design that records none |