List messages
list_messagesRead sent and received WhatsApp messages for an account, chat, or direction, newest first, with cursor pagination to page through a conversation.
Instructions
Messages wuapi stored, newest first: sent and received. Filter by account, chat and direction to read a conversation. Use list_chats to see which conversations an account has.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, 1 to 100. Default 20. | |
| chatId | No | The chat: a contact as E.164 with + (`+584241112233`) or `lid:<digits>`, or a group id (`...@g.us`). | |
| cursor | No | `nextCursor` from the previous page, to get the next one. | |
| accountId | No | The wuapi account id of the linked number to act as (from list_accounts). | |
| direction | No | ||
| projectId | No | Only this project: its id, `ext:<externalId>`, or `none` for resources in no project. Organization keys only; a project key always sees its own project. |