plot_quick
Create a COMSOL plot group and feature, render the result, and export a validated image in one call. Specify an expression, plot type, and export settings to get a ready-to-use plot file.
Instructions
One-call plot: create group + feature, render, export a validated image.
Args:
expr: COMSOL expression to plot, e.g. "T", "ht.T",
"u,v,w" (vector components comma-separated for arrows /
streamlines).
plot_type: surface (3D, default) | volume | slice |
isosurface | contour | arrow_surface |
arrow_volume | arrow_line | streamline | line |
point | global | surface2d | contour2d |
arrow2d.
dataset: dataset tag (e.g. "dset1", "cpl1", "cln1");
COMSOL default solution dataset when omitted.
title: plot title.
colortable: color table, e.g. "Rainbow", "ThermalLight",
"GrayScale", "Wave".
width: image width px (default 1200).
height: image height px (default 900).
imagetype: png (default) | jpeg | bmp.
path: output image path (auto under artifact root when omitted).
plotgroup: reuse this plot group tag instead of creating a new one.
model: model name/tag (None = current model).
Returns:
{"ok", "plotgroup", "feature", "plot_type", "path", "size", "width", "height", "format", "valid"}.
Example: plot_quick("T", plot_type="surface", colortable="ThermalLight", title="Temperature")
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": {
"expr": "<expr>"
},
"name": "plot_quick"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | ||
| path | No | ||
| model | No | ||
| title | No | ||
| width | No | ||
| height | No | ||
| dataset | No | ||
| imagetype | No | png | |
| plot_type | No | surface | |
| plotgroup | No | ||
| colortable | No |