run_simulation
Run SPICE simulations on netlist files. Automatically selects synchronous or asynchronous mode based on simulation length.
Instructions
Run a SPICE simulation on a netlist file. Automatically runs synchronously for short simulations (<=30s timeout) or asynchronously for longer ones. Use wait=true to force synchronous execution. Returns raw/log file paths and simulation summary on completion, or a job ID for async tracking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| netlist | Yes | Path to the netlist file (.cir, .net, .asc) | |
| timeout | No | Timeout in seconds. Simulations exceeding 30s run asynchronously unless wait=true (which enforces a 600s hard cap — the run is killed at the cap). | |
| wait | No | Force synchronous execution. Blocks until completion or hard timeout. | |
| format | No | Response format: 'json' for structured data, 'text' for human-readable |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | ||
| status | No | ||
| netlist | No | ||
| simulator | No | ||
| sim_type | No | ||
| duration | No | ||
| step_count | No | ||
| raw_file | No | ||
| log_file | No | ||
| signals | No | ||
| warnings | No | ||
| errors | No | ||
| meas_errors | No | ||
| measurements | No | ||
| fourier | No | ||
| range | No | ||
| point_count | No | ||
| failed_measurements | No | ||
| observations | No | ||
| error | No |