Direct chat with a contact
get_direct_chat_by_contactRetrieve a one-to-one WhatsApp chat by contact phone number, JID, or name to locate the direct conversation you need.
Instructions
Get the one-to-one chat with a contact given their phone number, JID or 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": {
"contact": "<contact>"
},
"name": "get_direct_chat_by_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contact | Yes | phone number, JID or contact name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jid | Yes | chat JID: x@s.whatsapp.net or x@lid for a person, x@g.us for a group | |
| name | No | group name or contact name; empty when unknown | |
| is_group | Yes | ||
| last_message | No | the newest stored message, when requested | |
| last_message_time | No | timestamp of the newest stored message, UTC |