Get log
get_logReturn lines of a log file of the NET Genium instance as JSON — the size of the file, the time of the last change (time of the operating system of the server), the number of lines and the selected lines in content. Without from_line the last lines of the file are returned; with from_line the lines starting at that line number, so a large log can be read page by page (next_line tells where the next page starts) and the surroundings of a line found with contains can be read. With contains only the lines containing the text are returned, each prefixed with its line number and a tab. At most 5000 lines and 200000 characters are returned at once; truncated tells that some of the selected lines were left out. With download 'true' a ZIP archive is returned instead, as an embedded MCP resource (base64 blob) after a text block with the same counts: without lines, from_line and contains it holds the whole file, otherwise the selected lines (lines then defaults to all of them and may be up to 1000000). A ZIP archive larger than 10 MB is refused; narrow the selection then. Find the name of the file with list_logs.
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": {
"name": "<name>"
},
"name": "get_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name as returned by list_logs, including the subdirectory, e.g. System-2026-11.log or administrator/global.log. | |
| lines | No | Optional number of returned lines, 1 to 5000 (with download up to 1000000). Counted from the end of the file, or from from_line onwards when it is given. Defaults to 200; with download to all the selected lines. | |
| contains | No | Optional text; only the lines containing it are returned, regardless of letter case. | |
| download | No | Optional: 'true' returns a ZIP archive with the whole file, or with the lines selected by lines, from_line and contains. | |
| from_line | No | Optional number of the first line to return, starting at 1 — e.g. next_line of the previous answer, or a line number returned with contains minus a few lines to read its surroundings. Omit to read the end of the file. |