result_export_data
Exports COMSOL expression data to CSV or TXT files, including units, selected datasets, solution numbers, or custom coordinates, and returns the file path, row count, and preview.
Instructions
Export expression data to a CSV/TXT file (COMSOL Data export).
Writes mesh-node/dataset-point values with a COMSOL comment header that
contains the units (e.g. % X,Y,Z,T (K)). Files are written into the
artifact workspace unless filename is absolute. The response
includes the path, column names with units, row count and a preview.
Args: expressions: expressions to export, e.g. ["T"]. dataset: dataset tag (None = default solution dataset). CutPlane / CutPoint datasets work and export their points. filename: output path; relative paths go to the artifact workspace. Extension .csv or .txt (default .csv). coords: optional explicit coordinates -> creates a temporary CutPoint3D dataset and exports the values at those points. solnum: 1-based solution number(s) (None = all); for multi-solution datasets every selected solution becomes a block in the file. model: model name/tag (None = current model).
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": {
"expressions": "<expressions>"
},
"name": "result_export_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| coords | No | ||
| solnum | No | ||
| dataset | No | ||
| filename | No | ||
| expressions | Yes |