Read messages from a WhatsApp chat
read_messagesRetrieve a WhatsApp chat's messages, oldest to newest. Get the most recent messages or pass a message ID to load older history and page backward through the conversation.
Instructions
Read messages from one chat, oldest to newest.
Without before you get the most recent messages. Pass before (the oldest
message_id you already have) to page further back; wazap asks the phone for
older history when the local store runs out, which takes a few seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of messages (1-200) | |
| types | No | Keep only these message types; omit for every type. The limit counts matching messages, so ["call"] returns that many calls, not that many messages of which some are calls. | |
| before | No | Return the messages immediately older than this message_id | |
| chat_id | Yes | Chat id as returned by another tool ("<digits>@s.whatsapp.net" or "<id>@g.us"), or a phone number in international format |