xmlquery
Query a CESM XML configuration variable from a case directory. Use --listall to list all defined variables.
Instructions
Query a CESM XML configuration variable.
Runs ./xmlquery from the case directory and returns the value. Variable names are case-sensitive (e.g., STOP_N, RUN_STARTDATE, NTASKS_OCN). Pass variable='--listall' to list every defined variable.
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": {
"case_dir": "<case_dir>",
"variable": "<variable>"
},
"name": "xmlquery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case_dir | Yes | ||
| variable | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |