msim_spice_run
Runs pure SPICE netlists through the Multisim kernel and returns parsed result data for each requested analysis command, enabling DC, AC, and transient simulations as JSON.
Instructions
走 Multisim 内核的命令通道跑一张纯网表,返回每个分析的结果数据。
与原理图仿真完全独立:不依赖探针和仪器,只要先用 msim_open 打开任意 .ms14(空白基底即可)建立 COM 上下文。流程:写 deck → 内核执行 → 解析每个 write 出来的 ASCII raw → JSON。
netlist SPICE 网表文本(纯 ASCII,首行是标题注释,末行 .end 可省) commands 分析命令列表,如 ["op", "tran 0 3m", "ac dec 50 10 10meg"]; 只接受分析/绘图命令,其它命令会被拒绝 outdir 结果目录(不能含空格);deck 和 plotN.raw 都写在这里
返回每条命令对应的 plotname/列名/行数据(复数列自动拆成 dB+相位)。
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>",
"commands": "<commands>",
"outdir": "<outdir>"
},
"name": "msim_spice_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outdir | Yes | ||
| netlist | Yes | ||
| commands | Yes |