Get every WhatsApp conversation from the last N hours
get_recent_messagesRetrieve recent WhatsApp messages grouped by chat in a single call, replacing multiple list and read operations. Excludes system notices by default for cleaner conversation counts.
Instructions
Everything that happened recently, grouped by chat. This is the catch-up tool: one call instead of list_chats plus a read_messages per chat. WhatsApp's own notices — device linking, group membership changes, encryption notices — are left out so the counts are conversation; pass include_system to see them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Look-back window in hours (1-168) | |
| 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. | |
| filter | No | Restrict to unread chats, groups, or one-to-one chats | all |
| compact | No | Leave out media without a caption and messages with no words in them, fold what one person sent in a row into one line, and say per chat what was left out. About half the size; use it for a routine catch-up | |
| account_id | No | Registry account id (default, work, …). Omit to resolve from chat_id or message_id, or the default account. | |
| include_system | No | Include WhatsApp's own system notices, which are excluded from the bodies and the counts by default | |
| include_previews | No | Attach a small JPEG of each photo, newest first, up to 12 per call, so you can see what was sent: the preview WhatsApp shipped when there is one, otherwise the photo is downloaded once and shrunk on the machine running wazap |