Read reply history
read_repliesReads a session's retained replies in order, returning ids and cursors. Pass the last handled cursor as after to continue, or omit it to start from the oldest retained reply.
Instructions
Read retained replies in order, with ids and cursors. Pass your last handled cursor as after; omit it to start at the oldest retained reply. Reads do not consume replies. Check gap for evicted or reset history and save each cursor only after handling its reply.
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": "read_replies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | A cursor returned for this session. Omit on the first read. | |
| limit | No | Maximum replies to return, from 1 to 100. Defaults to 20. | |
| session_id | Yes | The session id from list_sessions. |