Tail a log file
tail_logRetrieve the last N lines of a log file. Optionally filter by case-insensitive text to isolate relevant entries.
Instructions
Read the last N lines of a log file under the configured log root, optionally filtered to lines containing a substring (case-insensitive).
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": {
"path": "<path>"
},
"name": "tail_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path relative to the configured log root, for example nginx/error.log | |
| lines | No | How many lines to return (default 50) | |
| contains | No | Only return lines containing this text |