tree_create
Creates a child feature under a specified container node in a COMSOL model tree, enabling generic insertion of physics, function, or plot features by path and feature type.
Instructions
Create a child feature under a container node (generic escape hatch).
Examples: path="physics/ht", feature_type="HeatFluxBoundary", extra_args=[2]; path="functions", feature_type="Analytic"; path="plots", feature_type="PlotGroup3D". Use the catalog tools to discover valid feature types.
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": {
"path": "<path>",
"feature_type": "<feature_type>"
},
"name": "tree_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| path | Yes | ||
| label | No | ||
| model | No | ||
| extra_args | No | ||
| feature_type | Yes |