get_last_interaction
Fetch the last WhatsApp message involving a specified contact using their JID. Use it to review conversation context or confirm prior contact.
Instructions
Get the most recent WhatsApp message involving the contact.
Args: jid: The JID of the contact to search for
Returns: Message dictionary with id, timestamp, sender, content, etc. or empty dict if not found.
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": {
"jid": "<jid>"
},
"name": "get_last_interaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||