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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>"
},
"name": "list_messages"
}
}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 |