list_chats
Retrieve WhatsApp chats matching a name or JID search, with pagination, sorting, and optional last-message inclusion.
Instructions
Get WhatsApp chats matching specified criteria.
Args:
query: Optional search term to filter chats by name or JID
limit: Maximum number of chats to return (default 20)
page: Page number for pagination (default 0)
include_last_message: Whether to include the last message in each chat (default True)
sort_by: Field to sort results by, either "last_active" or "name" (default "last_active")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| limit | No | ||
| query | No | ||
| sort_by | No | last_active | |
| include_last_message | No |