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.
Request
Section titled “Request”| 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. |
Response
Section titled “Response”| 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. |
Example
Section titled “Example”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?" } } ]}Usage Pattern
Section titled “Usage Pattern”To restore a whole conversation:
- Call
replay_memorywithoffset0. - Call it again with
offsetset to the last returned item’sseqplus 1. - 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.
Errors
Section titled “Errors”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.
Related
Section titled “Related”- Conversation Memory: conversation IDs, limits, and retries
recall_memory: read the most recent itemslist_conversations: find the conversations to replay