Read Log File
log_readRead lines from a validated Unraid server log file, paging by line number when needed. Returns the tail by default, so you can inspect recent log activity.
Instructions
Read-only. Returns lines from a server log file. path is a path or name from log_list — validated against that list before reading (reads are limited to filenames the server lists in its log directory; symlinked entries are read as the server resolves them). Omitting start_line returns the last lines lines; pass start_line (1-indexed) to window from there and re-call with the hinted values to page. Counts may drift slightly on rapidly-growing logs; the cap bounds line count, not bytes. Requires LOGS read permission (any viewer-level key). For container logs use docker_container_logs; for host files log_list does not show, use file_read (SSH).
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": "log_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path or bare file name of a log, exactly as log_list returns it. | |
| lines | No | Maximum number of lines to return. | |
| start_line | No | 1-indexed line to start reading from; omit to get the last `lines` lines of the file. | |
| response_format | No | `detailed` returns full JSON instead of readable text. | concise |