sweep
Re-simulate a circuit spec for each value of a target parameter (part value, temperature, source frequency, or capacitance) and collect one specified metric per run.
Instructions
Parameter sweep: re-simulate spec for each value of target ("R1" = part value, "temp", "V1.wave.freq", "C1.value") and
collect one number per run. metric: {"what":"stats","probe":"v(out)","field":"rms"} | {"what":"op","probe":"v(c)"} |
{"what":"bandwidth","probe":"v(out)","field":"f_high_3db"} | {"what":"harmonics","probe":"v(out)","f0":1000,"field":"thd_pct"}.
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": {
"spec": "<spec>",
"target": "<target>",
"values": "<values>",
"metric": "<metric>"
},
"name": "sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | sweep | |
| spec | Yes | ||
| metric | Yes | ||
| target | Yes | ||
| values | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| metric | Yes | ||
| target | Yes |