Archive or unarchive a chat
archive_chatArchive or unarchive a WhatsApp chat on linked devices using a wuapi account. Set archived to false to restore it.
Instructions
Archive a chat on the linked devices, or unarchive it with archived: false.
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": {
"accountId": "<accountId>",
"chatId": "<chatId>"
},
"name": "archive_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | The chat: a contact as E.164 with + (`+584241112233`) or `lid:<digits>`, or a group id (`...@g.us`). | |
| archived | No | Default true. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). |