get_logs_paginated
Fetch session logs in paginated chunks using cursor-based navigation. Supports reverse reading and optional log consumption after retrieval.
Instructions
Get logs with cursor-based pagination and automatic chunking
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": {
"sessionId": "<sessionId>"
},
"name": "get_logs_paginated"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of log entries to return | |
| cursor | No | Starting cursor position (line number). Defaults to 0. | |
| reverse | No | Read in reverse order (latest first) | |
| sessionId | Yes | Session ID to get logs from | |
| consumeLogs | No | Whether to remove logs after fetching them (default: true) |