waha_get_messages
Retrieve messages from WhatsApp chats with filters for chat ID, session, pagination, media downloads, and sender type to manage conversations.
Instructions
Get messages from a WhatsApp chat with optional filters
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": {
"chatId": "<chatId>"
},
"name": "waha_get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | Chat ID | |
| session | No | Session name | default |
| limit | No | Number of messages to retrieve | |
| offset | No | Offset for pagination | |
| downloadMedia | No | Include media download URLs | |
| fromMe | No | Filter: only messages sent by me (true) or received (false) |