Chats involving a contact
get_contact_chatsLists every chat involving a contact, including direct and group chats, ordered by most recent activity and paginated by cursor.
Instructions
List every chat involving a contact: the direct chat and the groups they wrote in, most recently active first. Paginated by cursor.
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_contact_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | page size (default 20, max 200) | |
| cursor | No | next_cursor from the previous page | |
| contact | Yes | phone number, JID or contact name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chats | Yes | ||
| has_more | Yes | ||
| next_cursor | No |