mesh_export
Export the built COMSOL mesh to STL, NASTRAN, 3MF, PLY, or native files, with optional path, format, and component selection for downstream analysis or sharing.
Instructions
Export the built mesh to a file (STL, NASTRAN, 3MF, PLY, native, ...).
Args:
path: target file path (absolute, or relative to the artifact root).
When omitted a timestamped file under <artifact_root>/mesh/
is created. The correct extension is appended when missing.
format: "stl" (default, binary STL) | "stlbin" | "stlascii" |
"nastran" | "3mf" | "ply" | "native" | "sectionwise".
COMSOL 6.4 has no VTU mesh export.
stl_format: for STL exports: "binary" (default) or "text".
mesh: mesh sequence tag (None = first).
component: component tag (None = auto-detect).
model: model name/tag (None = current model).
Returns:
{"path": "", "size": , "export_type": ...}.
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": "mesh_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mesh | No | ||
| path | No | ||
| model | No | ||
| format | No | stl | |
| component | No | ||
| stl_format | No | binary |