operating_point
Read DC operating point data from LTspice/ngspice: node voltages, branch currents, and device parameters, for whole circuit or a single device.
Instructions
Read DC operating point data: all node voltages, branch currents, and each semiconductor's small-signal params (gm/gds/vth/vdsat/caps) — from LTspice's log (run_simulation auto-adds '.options logopinfo' on .op runs) or ngspice's @dev[param] traces, surfaced uniformly by name. Each value carries its SI unit where the simulator declared the type (see units). Pass device='M1' to get just one device's params + terminal currents in a single call.
A run-level solve failure (singular matrix / non-convergence) taints every value here; that simulator line is relayed into warnings — read it before trusting the bias point.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | For a .dc sweep raw: the sweep-axis VALUE to read the full bias snapshot at (SPICE notation, e.g. '2.5', '1.2'). Nearest point is used. Default reads the sweep's first point; ignored for plain .op runs (no sweep axis). | |
| step | No | Step index for stepped .OP runs (e.g. ``.step temp ...`` + ``.op``). Default 0 returns the first step. Out-of-range values raise a structured error rather than silently returning the wrong step. | |
| device | No | Narrow the result to one device: its operating-point params (@dev[param]) and its terminal currents (e.g. Id/Ig/Is(M1)), each typed with its unit. Pass the device reference (e.g. 'M1', 'Q2', or a subcircuit path 'x1.mn'); LTspice subcircuit semiconductors are matched by instance regardless of the log's colon-qualified name. Default returns the whole circuit. | |
| format | No | Response format: 'json' for structured data, 'text' for human-readable | |
| job_id | No | Read the operating point of a specific run of a completed sweep/MC (or single) job instead of a raw_file path; pair with ``run_index``. | |
| raw_file | No | Path to .raw result file. Pass this OR ``job_id`` (a job run), not both. | |
| run_index | No | 0-based run to read when ``job_id`` is given (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | ||
| units | No | ||
| device | No | ||
| currents | Yes | ||
| voltages | Yes | ||
| warnings | No | ||
| step_count | No | ||
| sweep_value | No | ||
| device_op_points | Yes |