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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case_dir | Yes | ||
| component | No | cesm | |
| lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |