tail_log
Returns the last N lines of the most recent CESM run log. Searches the case directory and filters by component: cesm, ocn, atm, ice, rof, or all.
Instructions
Return the most recent lines from a CESM run log.
Searches the case directory and its run/ subdirectory for log files. component: one of 'cesm', 'ocn', 'atm', 'ice', 'rof', or 'all' to show all logs found. Returns the last lines of the most recently modified matching log.
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>"
},
"name": "tail_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case_dir | Yes | ||
| component | No | cesm | |
| lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |