Read messages from a WhatsApp chat
read_messagesRetrieve chat messages oldest to newest, load older history using before, and read recent status stories via chat_id "status".
Instructions
Read one chat, oldest to newest: the latest messages, or older ones with before (wazap asks the phone when the local history runs out). chat_id "status" reads the stories people posted, newest first, from the last hours (at most a day); they show nowhere else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | "status" only: how far back, 24 by default | |
| limit | No | ||
| types | No | Only these types; limit counts them, so ["call"] gives that many calls | |
| before | No | The oldest message_id you have | |
| chat_id | Yes | Chat id from another tool, a phone number, or "status" for stories | |
| account_id | No | Account id | |
| include_previews | No | Attach a small image of each photo, up to 12 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | Yes | ||
| count | Yes | ||
| hours | No | ||
| notes | No | Caveats to act on or tell the user | |
| older | No | before ran past the local history: the phone was asked, and sent this many | |
| types | No | ||
| chat_id | Yes | ||
| omitted | No | Older stories left out by limit | |
| messages | Yes | ||
| account_id | Yes | ||
| preview_count | Yes | ||
| unconfirmed_sends | No | Sends WhatsApp has not echoed yet: outcome unknown, not failed |