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.
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": {
"filepath": "<filepath>"
},
"name": "tail_logs"
}
}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 |