Manage a WhatsApp chat
manage_chatPreview and confirm WhatsApp chat actions—archive, pin, mute, mark read/unread, pin or star messages, clear, delete, block, or unblock—before applying changes.
Instructions
Preview archive, pin, mute, pin_message, star_message, clear, delete, block and undo. After approval repeat chat_id/action with confirmation_id, without options. Expires in 15m; one attempt. mark_read runs directly, only when the user asks.
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_id": "<chat_id>",
"action": "<action>"
},
"name": "manage_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| chat_id | Yes | Chat id, or a phone number | |
| pin_hours | No | pin_message: 168 by default | |
| account_id | No | ||
| message_id | No | pin_message, star_message and their undo; in chat_id | |
| mute_hours | No | mute: 8 by default | |
| confirmation_id | No | From preview; omit message/duration options |