拉黑用户
gwl_add_to_blacklistAdd a user to a group/class blacklist and send an in-site notification; requires owner or manage permission for that class.
Instructions
把一个用户加入组类黑名单(会同时给对方发一条站内通知)。 拉黑自己 400;已在名单里 409。需要该组类的管理角色(class_role=owner 或权限含 manage),否则 403。
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": {
"cid": "<cid>",
"username": "<username>"
},
"name": "gwl_add_to_blacklist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | 组类标识(路径参数)。 | |
| reason | No | 备注 / 附言(最多 200 个字符,上游超限返回 400)。 | |
| username | Yes | 要拉黑的用户登录名。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||