set_group_announce
Toggle announce-only mode on a WhatsApp group to restrict posting to admins only, or allow all members to post.
Instructions
Toggle announce-only mode on a group; when enabled, non-admin send attempts are rejected by WhatsApp servers and members see a system message about the change. Reversible by calling again with the inverse value. Prerequisite: admin. See set_group_locked for restricting metadata edits. Returns the plain-text string Group <chat_jid> announce_only=<bool>.
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_jid": "<chat_jid>",
"announce_only": "<announce_only>"
},
"name": "set_group_announce"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_jid | Yes | WhatsApp JID: individual as `<digits>@s.whatsapp.net` or bare phone digits, group as `<digits>-<timestamp>@g.us` | |
| announce_only | Yes | true to lock posting to admins only, false to allow all members to post |