Change member role
brain_set_roleOwners only. Change a member's role in a shared brain, including promoting to owner or demoting an owner: brain_set_role({brain: "Cartona team", email: "sara@example.com", role: "reader"}). Owners are all equal, so an owner can demote any other owner. The last owner cannot be demoted. Confirm with the user first.
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": {
"brain": "<brain>",
"email": "<email>",
"role": "<role>"
},
"name": "brain_set_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | New role. | |
| brain | Yes | Brain uuid or name (among your own brains). | |
| Yes | Email of an existing member. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| name | Yes | ||
| role | No | ||
| brain | Yes | ||
| No | |||
| message | Yes | ||
| next_actions | No |