get_messages
Retrieve recent messages from WhatsApp chats with read permissions. Specify a chat ID and optional limit to fetch conversation history.
Instructions
Get recent messages from a chat. Only works for chats with canRead permission.
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": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | Chat ID (from list_chats) or phone number | |
| limit | No | Number of messages to fetch (default: 20) |