report_generate
Write COMSOL report content to an HTML or DOCX file and verify the saved file and embedded assets on disk.
Instructions
Write the report to an HTML or DOCX file and verify it on disk.
A report with no content sections produces NO file (COMSOL returns
without writing); add at least one Section with report_add_section /
report_add_content first. HTML reports also create a sibling
<stem>_files/ directory with the embedded PNGs.
Args:
report: report tag (see report_list).
path: output file path; extension chooses the format unless
format is given. Defaults to
<artifact_root>/<model>/<timestamp>_reports/<tag>.html.
format: html | docx (Report nodes; Presentation uses pptx).
model: model name/tag (None = current model).
Returns:
{"path","size","format","exists","assets_dir","assets"}.
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": "report_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| model | No | ||
| format | No | ||
| report | No | rpt1 |