Skip to content
Panel(opens in a new tab)

replay_memory

The replay_memory tool reads a conversation’s memory log from a given position onward, in the order the items were appended. Use it to restore a whole conversation, for example after a restart. For only the most recent items, use recall_memory. It requires site credentials.

Field Type Required Description
conversation_id string Yes The conversation to read. See the conversation ID rule.
limit integer Yes The maximum number of items to return, at most 1000.
offset integer No The sequence number to start reading at. Defaults to 0.
Field Type Always Present Description
items McpMemoryItem[] Yes Up to limit items from offset onward, in ascending sequence order. Fewer than limit items means the end of the log. Empty for an unknown conversation or an offset past the end.

Request:

{ "conversation_id": "c7Hk2mPq9xWz", "offset": 0, "limit": 2 }

Response:

{
"items": [
{
"seq": 0,
"recorded_at": "2026-11-20T09:38:52Z",
"payload": { "role": "shopper", "text": "Hi, I'm planning a hike" }
},
{
"seq": 1,
"recorded_at": "2026-11-20T09:38:52Z",
"payload": { "role": "agent", "text": "Happy to help. Where are you going?" }
}
]
}

To restore a whole conversation:

  1. Call replay_memory with offset 0.
  2. Call it again with offset set to the last returned item’s seq plus 1.
  3. Stop at the first page with fewer items than limit, including an empty page.

Because sequence numbers have no gaps, the offset is all you need to continue. There is no cursor token.

An unknown conversation or an offset past the end is not an error: items is empty. A malformed conversation ID is rejected and shouldn’t be retried. The Retries and Errors table lists every case.