read-log-file
Read the contents of a server log file to inspect events and diagnose issues. Optionally return only the last N lines for a quick view of recent activity.
Instructions
Read the contents of a log file from the server's logs directory. Optionally return only the last N lines.
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": {
"filename": "<filename>"
},
"name": "read-log-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name of the log file (e.g. 'app.log'). Must be a .log file inside the logs/ directory. | |
| lastLines | No | If specified, return only the last N lines of the file. |