get_task_events
Fetch normalized, paginated events from a task's event log to inspect progress, tool calls, and results; filter by kind and page with sequence cursors.
Instructions
Fetch normalized events from a task's event log.
Args:
task_id: Identifier of the task whose events to read.
limit: Maximum number of events to return, capped at 200. Default is 50.
before_seq: Exclusive upper bound — return events with seq < before_seq (older events).
Cannot be used with after_seq.
after_seq: Exclusive lower bound — return events with seq > after_seq (newer events).
Cannot be used with before_seq.
kinds: Optional filter by event kind. Must be a non-empty list of known kinds from
task_started, assistant_text, assistant_delta, tool_call, tool_result,
user_message, usage, notice, task_finished, undelivered.
assistant_delta is excluded by default unless explicitly listed. Pass null
to get all kinds except assistant_delta.
Returns events in oldest→newest order within the page, with:
events: list of event objects with theirseq,kind, and data fieldshas_more: true if there are more matching events in the requested directionnext_before_seq: theseqof the oldest event in this page (for paging older)next_after_seq: theseqof the newest event in this page (for paging newer)skipped_oversized: count of lines > 1 MiB that were skipped (not parsed, not counted as events)
For the complete final summary/report, use get_task_status in compact or full detail; event pages are bounded and are not a lossless final report read.
Each returned event has its long string fields truncated to 2000 chars, lists to 50 items,
and dict nesting to depth 4, with "truncated": true added if anything was cut. An event still
over 16 KiB after that (a very wide dict) is replaced by a stub carrying only seq, kind,
observed_at, truncated: true, oversized: true and its size in bytes. A page
stops early once its serialized size would pass 256 KiB (has_more remains true, cursors still
valid). A page is never empty while has_more is true.
Default (no before_seq/after_seq): newest page — the most recent events. Both cursors cannot be used at once. kinds=[] or an unknown kind raises INVALID_PARAMS.
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": {
"task_id": "<task_id>"
},
"name": "get_task_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | ||
| limit | No | ||
| task_id | Yes | ||
| after_seq | No | ||
| before_seq | No | ||
| recovery_cursor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||