trace_net
Trace any net in an LTspice schematic from a pin, net label, or coordinate. Returns all connected component pins, flags, and wire vertices to check connections or detect accidental shorts.
Instructions
Report everything electrically connected to a net: starting from a pin ('Ref.Pin'), a net label ('net:NAME'), or an (x,y) coordinate, return the net's labels and every component pin, FLAG, and wire vertex on it. Follows both wires (segment-aware — catches labels placed mid-wire) and same-name FLAGs (LTspice's name-based nets, as produced by schematic_from_netlist). Use it to answer 'what's on net X', to confirm a connect landed, or to spot an accidental short (a net carrying two different non-ground labels).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to an .asc schematic | |
| pin | No | Pin or net reference to start from: 'Ref.Pin' (e.g. 'M1.D'), 'net:NAME' (e.g. 'net:VDD'), or omit and pass x/y. | |
| x | No | X coordinate (with y) to trace from | |
| y | No | Y coordinate (with x) to trace from | |
| format | No | Response format: 'json' for structured data, 'text' for human-readable |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | ||
| labels | No | ||
| pins | No | ||
| coordinates | No | ||
| is_shorted | No |