report_add_content
Adds plot, mesh, table, text, or other content nodes to a COMSOL report section and links them to existing model nodes via noderef.
Instructions
Add a content node (plot, mesh, table, text, ...) inside a Section.
Content nodes reference existing model nodes through their noderef
property (verified live: PlotGroup, Mesh, Geometry, Physics, Study,
Parameter, Table, DerivedValues all accept noderef).
Args:
report: report tag.
section: target section tag (see report_add_section).
content_type: PlotGroup (e.g. insert a rendered plot) |
Table | DerivedValues | Mesh | Geometry |
Physics | Study | Parameter | Graphics |
Heading | Text | StringDataField | DataSet |
Material | Model | Variables | Functions.
tag: content node tag (auto when omitted).
noderef: tag of the referenced node inside the model, e.g. "pg1"
for a PlotGroup, "mesh1" for Mesh, "geom1" for Geometry,
"ht" for Physics, "std1" for Study.
text: text content for Text nodes (sets the text property).
properties: extra properties to set on the content node (e.g.
{"caption": "Temperature", "imagetype": "png"}).
model: model name/tag (None = current model).
Returns:
{"tag", "label", "type", "report", "section", "noderef"}.
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_add_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| text | No | ||
| model | No | ||
| report | No | rpt1 | |
| noderef | No | ||
| section | No | sec1 | |
| properties | No | ||
| content_type | No | PlotGroup |