list_messages
Retrieve WhatsApp messages filtered by date, sender, chat, or content, with pagination and optional surrounding context.
Instructions
Get WhatsApp messages matching specified criteria with optional context.
Args:
after: Optional ISO-8601 formatted string to only return messages after this date
before: Optional ISO-8601 formatted string to only return messages before this date
sender_phone_number: Optional phone number to filter messages by sender
chat_jid: Optional chat JID to filter messages by chat
query: Optional search term to filter messages by content
limit: Maximum number of messages to return (default 20)
page: Page number for pagination (default 0)
include_context: Whether to include messages before and after matches (default True)
context_before: Number of messages to include before each match (default 1)
context_after: Number of messages to include after each match (default 1)
include_groups: Whether to include group chat messages (default False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| after | No | ||
| limit | No | ||
| query | No | ||
| before | No | ||
| chat_jid | No | ||
| context_after | No | ||
| context_before | No | ||
| include_groups | No | ||
| include_context | No | ||
| sender_phone_number | No |