query_value
Look up a signal’s value at a specific time or frequency in transient or AC simulation results. Returns the nearest data point without interpolation, supporting stepped and sweep job runs.
Instructions
Look up the value of a signal at a specific time point (transient) or frequency (AC). Returns the nearest data point without interpolation.
To pick a step of a .step/.DC sweep by its axis VALUE (rather than a raw step index), pass step_axis + step_value (e.g. step_axis='temp', step_value='27'); at then selects the inner-axis point within that step (optional). AC samples also return magnitude_linear alongside magnitude_db/phase_deg.
To query a run of a completed sweep/MC job, pass job_id + run_index instead of raw_file — the run is analyzed like any standalone raw.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_file | No | Path to .raw result file. Pass this OR ``job_id`` (a job run), not both. | |
| job_id | No | Analyze a specific run of a completed sweep/MC (or single) job instead of a raw_file path; pair with ``run_index``. Lets you query a sweep run the same way you'd query a standalone raw. | |
| run_index | No | 0-based run to analyze when ``job_id`` is given (default 0). | |
| signal | Yes | Signal/trace name (e.g., 'V(out)', 'I(R1)'). | |
| at | No | Time or frequency to query in SPICE notation (e.g., '1m', '100u', '1G', '2.5k'). Required unless ``step_axis`` is given (then it picks the inner-axis point within the chosen step; optional). | |
| step | No | Step index for .step directives (ignored when ``step_axis`` is used). | |
| step_axis | No | Select the step by a .step/.DC sweep-axis VALUE instead of an index: the parameter name (e.g. 'temp', 'Rval'). Pair with ``step_value``. The nearest step is chosen and flagged with ``exact_match``. | |
| step_value | No | Target value of ``step_axis`` in SPICE notation (e.g. '27', '1k'). Required when ``step_axis`` is given. | |
| format | No | Response format: 'json' for structured data, 'text' for human-readable |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal | No | ||
| requested_x | No | ||
| actual_x | No | ||
| value | No | ||
| magnitude_db | No | ||
| magnitude_linear | No | ||
| phase_deg | No | ||
| axis | No | ||
| requested_value | No | ||
| actual_value | No | ||
| exact_match | No | ||
| step_index | No | ||
| requested_at | No | ||
| actual_at | No | ||
| warnings | No |