comsol_plot
Creates 2D or 3D surface plots from COMSOL model expressions and exports them as PNG images, returning the saved file path.
Instructions
画结果图并导出 PNG。expression 例如 'T';unit 如 'degC';title 为图标题。自动按模型维度创建 2D/3D 表面图,file 为空时输出到 out/ 目录。返回图片路径。
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": {
"expression": "<expression>"
},
"name": "comsol_plot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| unit | No | ||
| title | No | ||
| width | No | ||
| height | No | ||
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |