simulate_spice
Runs a SPICE deck through Proteus's engine, resolves library models and subcircuits, and executes the chosen analysis card to return simulation results.
Instructions
Simulate a SPICE deck (R C L V I D Q J M E G X, .MODEL .SUBCKT .PARAM, .OP/.TRAN/.AC/.DC, .PRINT/.PROBE) with Proteus's engine. Library models/subcircuits (e.g. 2N3904, 1N4148, LM324, OP07 as X) are resolved from Proteus's libraries. SPICE number notation (m=milli, MEG=mega). Pick which analysis card to run with analysis_index. Not supported yet: F H K S W B, .INCLUDE.
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": {
"deck": "<deck>"
},
"name": "simulate_spice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | ||
| name | No | sim | |
| max_rows | No | ||
| analysis_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | ||
| csv | Yes | ||
| gain | No | ||
| name | Yes | ||
| noise | No | ||
| stats | No | ||
| table | No | ||
| family | No | ||
| probes | Yes | ||
| digital | No | ||
| x_range | Yes | ||
| analysis | Yes | ||
| csv_rows | No | ||
| warnings | No | ||
| partition | No | ||
| distortion | No | ||
| solver_options | No |