run_transient
Inject a .tran command into a copy of a SPICE netlist to run a transient simulation. Save time and voltage data to a .npz file.
Instructions
Run a transient simulation on a SPICE netlist.
Injects a .tran <step_time> <stop_time> <start_time> command into a
temporary copy of the netlist (does not modify the original).
Results are saved to a .npz file next to the netlist. Load with: data = np.load('netlist_tran.npz') time = data['time_s'] vout = data['v(out)']
For sweeping a component value or parameter across multiple transient runs in parallel, use run_sweep(analysis_cmd=".tran step stop") instead.
Args: netlist_path: Absolute path to the netlist file step_time: Time step with SPICE suffix, e.g. "1n", "10u", "1m" stop_time: Simulation end time, e.g. "1m", "100u" start_time: Time at which to start saving data (default "0")
Returns: JSON summary with data_file path, time range, and trace names.
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_path": "<netlist_path>",
"step_time": "<step_time>",
"stop_time": "<stop_time>"
},
"name": "run_transient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| netlist_path | Yes | ||
| step_time | Yes | ||
| stop_time | Yes | ||
| start_time | No | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |