Get conversation context
get_conversationRetrieve a chat's most recent messages in chronological order, oldest first. Page back into older context by specifying a date cutoff.
Instructions
Return the most recent messages of one chat in chronological order (oldest first). Use 'before' (ISO date) to page back into older context.
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": {
"chat_id": "<chat_id>"
},
"name": "get_conversation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items to return (1-500, default 50). | |
| before | No | Only return messages sent before this ISO date/time. | |
| chat_id | Yes | Chat id as returned by list_chats. |