get_messages
Retrieve recent messages from a WhatsApp chat, oldest first within the returned window, by phone number or JID. Set a limit up to 200 to control how much history is returned.
Instructions
Get recent messages in a chat (oldest first within the returned window).
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": "<chat>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat: phone number like +911234567890, or a JID (…@s.whatsapp.net, …@g.us). | |
| limit | No | Max messages to return, newest last (1-200). |