Read messages from a WhatsApp chat
read_messagesRetrieve messages from a WhatsApp chat, newest or older via before, with optional full text; use chat_id "status" to read recent stories.
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). Long texts are cut unless full_text. 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 | |
| full_text | No | Each message's text whole; a list cuts long ones otherwise | |
| account_id | No | ||
| 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 |