Archive Chat
wa_archive_chatArchive a chat (hide it from the main chat list), or unarchive it by passing archive=false. Works on a 1:1, a group or a channel. Fire-and-forget: there is no delivery confirmation. Note that a new incoming message un-archives the chat, exactly as WhatsApp normally does.
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": "wa_archive_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | the chat to archive or unarchive — a phone number in international form (digits only) for a 1:1, or a group/channel JID (…@g.us for a group, …@newsletter for a channel) | |
| archive | No | true to archive (the default when omitted), false to unarchive | |
| account_id | No | the account, as returned by wa_list_accounts; omit it when the workspace has only one account |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ok (queued to the bridge) or refused (nothing was done) | |
| refusal | No | present only when status is refused |