tail_logs
Retrieve the last N lines from a log file to inspect recent entries for troubleshooting and monitoring.
Instructions
Return the last N lines of a log file.
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": {
"file": "<file>"
},
"name": "tail_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Log file path or name | |
| lines | No | Number of lines to return (default 20) |