list_messages
Retrieve WhatsApp messages from a specific chat. Configure message limit, include media payloads, and get full data including base64 media. Ideal for accessing chat history programmatically.
Instructions
Get WhatsApp messages from a specific chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | The JID of the chat to retrieve messages from (e.g., 123456789@s.whatsapp.net or 123456789-12345678@g.us) | |
| limit | No | Maximum number of messages to return | |
| include_media | No | Also fetch media payload/metadata for messages with media | |
| include_full_data | No | When include_media=true, include base64 media data in output | |
| media_limit | No | Max number of media messages to enrich per call |