msim_set_model
Updates a BJT or diode component’s displayed model name and SPICE parameters while preserving its internal .MODEL key so Multisim symbols and attributes stay synchronized.
Instructions
换元件的显示型号与模型参数(BJT/二极管换型号用)。
model_name 新显示型号,如 "2N3904"(图上标注和属性同步替换) model_text 新模型参数体,如 "NPN IS=6.734E-15 BF=416.4 ..."; 省略则只换显示名
注意:内部 .MODEL 键保留原名不改(改了会与 Multisim 元件数据库 失绑,文件打开即崩——实测),所以仿真参数换、网表 .MODEL 名不变, 对仿真结果无影响。同步 SPICE 参数体、属性槽、符号显示文字, 返回替换后的模型文本。
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": {
"refdes": "<refdes>",
"model_name": "<model_name>"
},
"name": "msim_set_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refdes | Yes | ||
| model_name | Yes | ||
| model_text | No |