Last interaction
get_last_interactionRetrieve the most recent message exchanged with a contact using their phone number, JID, or name, including messages they sent anywhere or in a direct chat.
Instructions
Get the most recent message exchanged with a contact (sent by them anywhere, or in their direct chat).
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_last_interaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contact | Yes | phone number, JID or contact name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | ||
| message | No |