list_messages
Retrieve chat history by listing messages from a specified WhatsApp chat. Supports pagination with adjustable limits and page numbers for efficient message retrieval.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chat_jid | Yes | The JID of the chat (e.g., '123456@s.whatsapp.net' or 'group@g.us') | |
limit | No | Max messages per page (default 20) | |
page | No | Page number (0-indexed, default 0) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"chat_jid": {
"description": "The JID of the chat (e.g., '123456@s.whatsapp.net' or 'group@g.us')",
"type": "string"
},
"limit": {
"default": 20,
"description": "Max messages per page (default 20)",
"exclusiveMinimum": 0,
"type": "integer"
},
"page": {
"default": 0,
"description": "Page number (0-indexed, default 0)",
"minimum": 0,
"type": "integer"
}
},
"required": [
"chat_jid"
],
"type": "object"
}