set_group_whole_ban
Turn whole-group mute on or off for a OneBot group, letting you lock chat so only admins can speak or restore normal posting. Requires the target group ID and an enable flag.
Instructions
开或关全员禁言。会改变整个群的状态。
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": {
"group_id": "<group_id>"
},
"name": "set_group_whole_ban"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enable | No | true=开启全员禁言,false=关闭,默认 true | |
| group_id | Yes | 目标群号。用 get_group_list 取真实值,别凭记忆填 |