archive_chat
Archives a WhatsApp chat (a person or a group), or unarchives it with archive: false, on the user's phone and every linked device, like "Archive chat" on the phone. Works on the free plan. Nothing is deleted and it can be undone; the other people in the chat see nothing. Use it when the user wants a chat out of their main list but kept; to remove a conversation for good, use delete_chat. Returns { chat, status (archived, unarchived or failed) }, with the contact fields (name; name_source: address_book, push_name, group_subject, business, phone or unresolved; canonical_jid: the JID to pass to send_message and read_chat_history; phone_jid and lid_jid: the chat's phone-number and LID forms, null when unknown or for groups; phone_display: the number as +). If it answers that WhatsApp is re-syncing, ask the user to open WhatsApp on their phone and try again in a minute.
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": {
"chat": "<chat>"
},
"name": "archive_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | The chat to archive: a contact name, a phone number with country code, a group's exact name, or a chat JID (person, @lid or group). | |
| archive | No | Optional, default true. true archives the chat; false unarchives it (moves it back to the main chat list). |