update_group
Modify group chat settings as the group owner by submitting only the fields to change; set the announcement to null to clear it.
Instructions
修改群组信息。
只有群主可以操作。只提交需要修改的字段;把 announcement 设为 null 表示清空群公告。
Args: group_id: 群组 ID。 token: 群主身份令牌。 updates: 字段名到新值的映射。可用字段:title、owner_id、 visitor_permissions、allow_join、history_visible、 message_ttl、announcement、lifetime。
Returns: 修改后的群组信息。
Raises: GroupNotFoundError: 群组不存在。 NotGroupOwnerError: 不是群主。 InvalidFieldError: 字段名不存在。 InvalidFieldValueError: 字段值不合法。
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>",
"token": "<token>",
"updates": "<updates>"
},
"name": "update_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| updates | Yes | ||
| group_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||