validate_netlist
Validates netlists and schematics for static errors—empty files, missing nodes, floating pins, duplicate analyses—and returns a structured issue list before simulation.
Instructions
Lint a netlist or schematic before simulation — the static circuit check gate. Catches: empty/whitespace-only netlist files, element arity (too few nodes, missing E/G/F/H/B value), dangling nodes in .cir/.net netlists (a node touching only one element terminal — warning, since deliberate fragments are legal), bias-topology degeneracies in .cir/.net netlists (a net with no DC path to ground — floating MOSFET gate, capacitive island, current-source-only node, or isolated domain — warning, since the operating point may still be defined by other means), duplicate/multiple analysis directives ('More than one analysis specified'), .MEAS whose analysis kind isn't present, known-bad .MEAS patterns (vdb()/phase()/group_delay()), and directives the LTspice runner is known to reject (set target_simulator='ngspice' to instead flag ngspice-only incompatibilities, e.g. a zero '.tran' step time). On .asc, also surfaces named-net shorts, floating pins, and dangling labels. Returns a structured issue list; an empty list means the file passes the static gate. Note: value tokens (e.g. a typo'd '1kk') and undefined model references are NOT checked — LTspice coerces or resolves those at run time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to circuit file (.cir, .net, or .asc) | |
| format | No | Response format: 'json' for structured data, 'text' for human-readable | |
| target_simulator | No | Simulator the deck is intended to run on; selects which simulator's pre-flight rules apply. 'LTspice' runs the LTspice-specific gates (more-than-one-analysis rejection, .meas analysis-kind matching, C=/L= primary-value, viewer-only .meas functions). 'ngspice' skips those and applies ngspice-only checks instead (a zero '.tran' step time is rejected). Structural checks (element arity, dangling nodes, bias topology) apply to both. Defaults to LTspice. | LTspice |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| issues | No | ||
| issue_count | No |