fetch_message_history
Retrieve older WhatsApp messages from an allowlisted chat. Use beforeMessageId to page backward when you need previous conversation history.
Instructions
Pull older messages for an allowlisted chat using Baileys fetchMessageHistory. Use beforeMessageId to page backward.
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": "fetch_message_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| chatId | Yes | ||
| beforeMessageId | No |