Invite to shared brain
brain_inviteInvite someone to a shared brain you own, by email, with a role: owner (everything, including inviting and removing people), writer (read and write memories) or reader (read only). Example: brain_invite({brain: "Cartona team", email: "sara@example.com", role: "writer"}). Stash sends no email: tell the person yourself. The invite waits even if they have no Stash account yet, and only matches a verified email. Personal brains cannot be shared. Confirm the email and role 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_invite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role to give them. | |
| brain | Yes | Brain uuid or name (among your own brains). | |
| Yes | Email address of the person to invite. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| name | Yes | ||
| role | No | ||
| brain | Yes | ||
| No | |||
| message | Yes | ||
| next_actions | No |