get_chat
Look up a WhatsApp chat by JID, phone number, or name to retrieve its JIDs, group status, and recent messages; returns found=false if the chat is absent.
Instructions
Returns found=false for a chat absent from the store. Otherwise returns its name, all JIDs, group flag and the most recent messages.
chat may be a JID, a phone number with country code, or a chat or contact name.
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": "<chat>"
},
"name": "get_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| recent | No | ||
| account | No | Account from list_accounts when several WhatsApp numbers are set up; default: default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||