comsol_save
Save the current COMSOL model to its original file or a new path, optionally backing up the old file first; returns status codes, including SAVE_LOCKED if the file may be open in COMSOL Desktop.
Instructions
保存当前模型。path 为空时存回原文件;提供 path 时另存为。backup=true 时先把旧文件复制为 .bak-时间戳(不移动原文件),保存失败不会破坏原文件。返回 ok/error_code;SAVE_LOCKED 表示文件可能被 Desktop 打开。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "comsol_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| backup | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |