Read Log File
read_log_fileReads log files by returning the latest lines or a specified range from an offset, enabling targeted troubleshooting and system diagnostics.
Instructions
Read a log file. tail=True returns the last lines lines;
tail=False reads lines lines starting at offset.
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": "read_log_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| tail | No | ||
| lines | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |