List the chats a number kept
list_chatsThe chats a number kept messages from, most recent first: the people and groups it received messages from or sent messages to. Each chat is written the way the message.created webhook writes it, so it matches the chats your server already knows. Read one with get_chat_history.
A chat is listed while any of its messages are kept, so the list follows the number's historyPerChat (see update_number); 0 keeps none, and lists none. A contact whose number WhatsApp hides comes back as its phone once your number has seen it, and as its …@lid address until then. Free.
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_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many to return, most recent first. Up to 500; 50 when left out. | |
| number | No | Which of your numbers: its id or its phone. Optional when you have only one. |