Skip to content

Realtime

realtime_history_get

Read message history of a realtime channel: either a cursor (offset + epoch, replays strictly after the offset; recovered:false on epoch mismatch or aged-out entries) or a window (last_n / last_ms).

Tool

realtime_history_get

Read message history of a realtime channel: either a cursor (offset + epoch, replays strictly after the offset; recovered:false on epoch mismatch or aged-out entries) or a window (last_n / last_ms).

Read message history of a realtime channel: either a cursor (offset + epoch, replays strictly after the offset; recovered:false on epoch mismatch or aged-out entries) or a window (last_n / last_ms). Conceptually requires the `history` capability; in Phase 1 this surface is Identity-authenticated management access.

Behavior

HTTP
GET /realtime/messages/history

Arguments

NameTypeRequiredDescription
epochstringCursor: stream epoch the offset belongs to
last_nintegerWindow: return the last N entries
offsetstringCursor: resume strictly after this offset (requires epoch)
channelstringChannel to read history from
last_msintegerWindow: return entries newer than now minus this many milliseconds

Response

FieldTypeAlwaysDescription
epochstringCurrent stream epoch, or null when the channel has no history yet
channelstringChannel the history was read from
entriesarrayEntries in stream order
recoveredbooleanfalse when the cursor epoch mismatches or entries aged out — client must resync

Try it

Read message history of a realtime channel: either a cursor (offset + epoch, replays strictly after the offset; recovered:false on epoch mismatch or aged-out entries) or a window (last_n / last_ms).

When to use

Read message history of a realtime channel: either a cursor (offset + epoch, replays strictly after the offset; recovered:false on epoch mismatch or aged-out entries) or a window (last_n / last_ms). Conceptually requires the `history` capability; in Phase 1 this surface is Identity-authenticated management access.

Example

Ask your agent something like this:

Read message history of a realtime channel: either a cursor (offset + epoch, replays strictly after the offset; recovered:false on epoch mismatch or aged-out entries) or a window (last_n / last_ms).

The agent will invoke realtime_history_get with these arguments:

{
  "channel": "<channel>"
}

Esc

Start typing to search the docs.

navigateselect