tail_logs
Read recent lines from a log or text file safely, with optional regex filtering to isolate errors or events without loading the whole file.
Instructions
Safely read recent lines from a log or text file with optional regex filtering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of recent lines to retrieve (default: 50, max: 500) | |
| pattern | No | Optional regex pattern to filter lines | |
| filepath | Yes | Absolute or relative path to log file |