Get Messages
get_messagesRead recent messages from ONE chat, MOST RECENT FIRST. Returns sender (JID), canonical sender_identity / @sender_mention (including for LID group senders), from_me, body, type, attachment filename/mimetype, timestamp, reactions, and any quoted message. Messages deleted for everyone read "This message was deleted" with type revoked and their original text in prev_body. Empty / system / undecryptable rows are skipped, so this is the clean way to read or summarise a conversation. Page to older messages with before.
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 | Max messages to return. Default 30, max 100. | |
| before | No | Optional upper bound — return messages older than this instant, to page backwards. ISO 8601 (e.g. "2026-06-16T09:30:00Z"); epoch-ms also accepted. | |
| chat_id | Yes | The chat JID to read (DM or group). |