Set workspace member role
workspace_member_set_roleChange a member's role: collaborator (works on everything in the workspace: files, folders, tables, tasks and outputs) or viewer (reads everything and posts messages); either is a guest, who does not manage people, public links, the guide, task definitions or triggers. id is the member: its row id from workspace_member_list (it stands alone), or an account id, alias or email address with workspaceId. Only the workspace's owner or a member of the team that owns it may (share); a guest of any role is refused GUEST_FORBIDDEN, and a retry changes nothing. A change to viewer at once returns the member's held tasks to the queue, withdraws their open submissions, clears their task and task definition roles, lowers their keys' write access here to read, and disconnects their browser views.
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": {
"id": "<id>",
"role": "<role>"
},
"name": "workspace_member_set_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The member: its row id (id from the member list; it stands alone), or with workspaceId an account id or alias (that account's row) or an email address (the row of the primary account of the person who verified it, else the row an add or invite by that address made). | |
| why | No | Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters. | |
| role | Yes | viewer or collaborator. | |
| workspaceId | No | The workspace (its id or its slug), when the member is named by account id, alias or email; optional beside a member row id (the row must be in it). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| member | Yes |