read_log_paginated
Read paginated sections of log files using token-based paging to respect AI context limits. Detects file modifications between calls.
Instructions
Reads a paginated portion of a log file. Useful for large log files. Uses token-based pagination to respect AI context limits. Tracks file modifications to detect changes between pagination calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name of the log file to read | |
| num_lines | No | DEPRECATED: Use max_tokens instead. Maximum number of lines (max: 1000). If specified, overrides max_tokens. | |
| max_tokens | No | Maximum tokens to return (default: 4000, max: 100000). Uses ~4 chars per token estimation. | |
| start_line | No | Starting line number (1-based, default: 1) | |
| expected_size | No | Expected file size in bytes (from previous call). If file size changed, returns a warning. | |
| expected_mtime | No | Expected modification time timestamp (from previous call). If file was modified, returns a warning. |