Tail Log File
tail_fileRead the last lines of a Linux log file to inspect recent events, with optional line count and path restricted to allowed directories.
Instructions
Tail a log file. Path must start with an allowed prefix (default: /var/log).
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to log file | |
| lines | No | Number of lines to return |