list_chats
Retrieves WhatsApp chats by name or JID query with pagination, sorting by last activity or name, and optional last-message preview for quick lookup.
Instructions
Get WhatsApp chats matching specified criteria.
Args: query: Search term to filter chats by name or JID limit: Max chats to return (default 50, max 200) page: Page number for pagination (default 0) include_last_message: Include the last message in each chat (default True) sort_by: "last_active" (default, most recent first) or "name" (alphabetical)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| limit | No | ||
| query | No | ||
| sort_by | No | last_active | |
| include_last_message | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |