mat_rename
Rename a COMSOL material's display label and/or tag while keeping selections intact and updating tree references.
Instructions
Rename a material's display label and/or change its tag.
Args: tag: current material tag, e.g. "mat1". label: new display name shown in COMSOL (e.g. "Copper (annealed)"). new_tag: new material tag, e.g. "copper" (references in tree paths change; selections are kept). component: component tag (default "comp1"); "" or "global". 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": {
"tag": "<tag>"
},
"name": "mat_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | ||
| label | No | ||
| model | No | ||
| new_tag | No | ||
| component | No | comp1 |