Stream a Kiro session transcript
kiro_stream_sessionStream a Kiro session transcript live: fetch events after a cursor plus the next cursor, optionally waiting for new events, and replay history for sessions this server did not start.
Instructions
Follow a session's transcript live: returns events after cursor (agent text, tool calls and results, plan updates, permission requests, turn events) and the next cursor, waiting up to wait_s (default 1 s) when nothing is newer. Works for sessions this server did not start: they are loaded first, so their history comes first (replay: true), then live events. Re-reading a cursor returns the same events; gap: true means older events were dropped. types filters (skipped events still advance the cursor); max_chars caps the page and sets truncated: true. Also available as the subscribable resource kiro-session://<session_id>/transcript (notifications/resources/updated within a second of new events).
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": {
"session_id": "<session_id>"
},
"name": "kiro_stream_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| types | No | ||
| cursor | No | ||
| wait_s | No | Seconds to wait for a new event (default 1). | |
| max_chars | No | ||
| session_id | Yes | Kiro session id (sess_<uuid>). | |
| include_thoughts | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | Yes | ||
| uri | Yes | ||
| events | Yes | ||
| turn_id | Yes | ||
| truncated | Yes | ||
| session_id | Yes | ||
| next_cursor | Yes | ||
| turn_status | Yes | ||
| lowest_cursor | Yes | ||
| session_state | Yes | ||
| omitted_thoughts | Yes | ||
| pending_permissions | Yes |