container_exec
Execute CIME commands (e.g., case.build, case.submit) inside a running container session to manage CESM cases.
Instructions
Run a CIME command inside a running container session.
name: session name from start_container. case_dir: absolute path to the CESM case directory on the host. On Derecho this path is identical inside the container (/glade is mounted). On Podman, this dir is passed as -v and mounted at the same path. command: shell command to run (e.g. './case.build', './case.submit --no-batch').
Returns the full stdout+stderr from the command.
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": {
"name": "<name>",
"case_dir": "<case_dir>",
"command": "<command>"
},
"name": "container_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| case_dir | Yes | ||
| command | Yes | ||
| runtime | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |