library_run
Load a COMSOL library model, solve all or a specified study, and save the solved copy to the workspace.
Instructions
Load a library model, solve it, and save a solved copy to the workspace.
Synchronous and blocking (all COMSOL work is serialised) -- intended for small
models: check time_s in library_search/library_describe and prefer
quick_only=true models for interactive use. Heavy models can take minutes.
Args:
id_or_path: model id (from library_search) or absolute .mph path.
study: optional study tag/name to solve (e.g. "std1"); default = all studies.
save_path: target .mph path; default = workspace artifact root
<artifact_root>/<model>/<timestamp>_library_run/<model>_solved.mph.
name: optional model name in the COMSOL session (default: file stem).
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": {
"id_or_path": "<id_or_path>"
},
"name": "library_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| study | No | ||
| save_path | No | ||
| id_or_path | Yes |