spice_run
Run SPICE netlists in ngspice batch mode to get parsed .meas results and a short log tail for circuit simulation validation.
Instructions
Runs a SPICE netlist in ngspice batch mode (-b) and returns parsed .meas results plus a short log tail. Does not plot. Use spice_toolchain_info to probe the engine.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"netlist": "<netlist>"
},
"name": "spice_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| netlist | Yes | Path to the .cir / .sp netlist. | |
| timeout_ms | No | Maximum task time in milliseconds (default: 60000). |