get_recent_chats
Lists the user's most recent WhatsApp chats (people and groups), newest first: each with its chat_jid, a preview of the last message, last_message_from_me (true if the user sent it, null when unknown), and the contact fields (name; name_source: address_book, push_name, group_subject, business, phone or unresolved; canonical_jid: the JID to pass to send_message and read_chat_history; phone_jid and lid_jid: the chat's phone-number and LID forms, null when unknown or for groups; phone_display: the number as +). Use it for "what's new", to find a chat's JID before read_chat_history, or to pick up recent conversations. To find chats waiting for a reply, use get_unanswered_chats instead.
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": {
"limit": "<limit>"
},
"name": "get_recent_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | Number of chats to return (e.g. 20). Keep it small to save context. |