Change a member’s role
set_member_roleOwner only. Change one member’s role in this workspace to editor or viewer. The workspace creator cannot be changed — they are permanently owner, which is what guarantees a workspace always has at least one. You cannot change your own role either: demotion is a one-way door, because afterwards you no longer hold the permission to change it back; hand over by having another owner do it. The change takes effect immediately, including for tokens the member is already using, because a token acts with its owner’s current role rather than the role held when it was created. Get user_id from list_members.
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": {
"user_id": "<user_id>",
"role": "<role>"
},
"name": "set_member_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | editor 建页面 / 发版 / 发链接 · viewer 只读。**不能改成 owner** | |
| user_id | Yes | 要改谁,26 位 user_id(`list_members` 里那个) |