Get chat messages
get_messagesReturn the messages of one of the user's chats, in chronological order.
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_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of (most recent) messages to return (1-100). | |
| chat_id | Yes | The id of the chat (from list_chats) to read messages from. |