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