leave_group
Leave a group chat by removing your own membership; if you are the owner, transfer ownership to remaining members, or dissolve the group when no members remain.
Instructions
退出群组。
先查询自己的成员信息,再把自己移出群组。群主退群时群主权限会 自动转移给剩余成员;如果群内再无成员,群组会自动解散。
Args: group_id: 群组 ID。 token: 本人身份令牌。
Raises: GroupNotFoundError: 群组不存在。 NotGroupMemberError: 本人不在群内。
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>"
},
"name": "leave_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| group_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |