tail_log
Read the end of a log file with token-based pagination to stay within AI context limits, making it useful for checking recent log entries.
Instructions
Reads the end of a log file (like Unix 'tail' command). Uses token-based pagination to respect AI context limits. Ideal for checking recent log entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of lines to read from the end. If not specified, uses token-based limit. | |
| filename | Yes | Name of the log file to read | |
| max_tokens | No | Maximum tokens to return (default: 4000, max: 100000). Uses ~4 chars per token estimation. |