spice template
spice_templateGenerate a complete SPICE netlist from a parameterized template. Supports common circuit topologies: low-pass RC filter, voltage divider, common emitter amplifier. Returns a ready-to-simulate netlist string that can be passed directly to spice_simulate. Use this when an agent needs to construct a circuit from high-level parameters without writing raw SPICE syntax. Feeds into spice_simulate for AC/DC/transient analysis.
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": {
"template": "<template>",
"params": "<params>"
},
"name": "spice_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | Template-specific parameters (e.g. r_ohms, c_farads, v_source) | |
| analysis | No | SPICE analysis type to include in netlist | ac |
| template | Yes | Circuit template name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| netlist | Yes | Complete SPICE netlist ready for simulation | |
| analysis_type | Yes | Analysis type included in the netlist | |
| template_name | Yes | Template used | |
| component_count | Yes | Number of components in the generated circuit |