Invite to folder
invite_to_folderInvite people to a folder by email, as guests who sign in to Playbook. Each new address gets an email with a sign-in link to the folder; they need no password. Use it to let a client into a hosted app open only to the folder's people. Unlike share_folder, this gives named people access rather than making a link anyone can open. A guest already on this folder gets the requested role instead of a second email, so calling again with another role changes it; without role they keep theirs. People who can already see the folder another way are left as they are (has_access). Confirm the addresses and the role with the user first: each address receives an email.
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": {
"token": "<token>",
"emails": "<emails>"
},
"name": "invite_to_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | `view` sees the folder and comments. `share` can also make share links. `edit` is full control of the folder: it also changes, uploads and deletes assets, creates and deletes folders inside it, invites more people and publishes the folder. A hosted app where the visitor approves or sets a status needs `edit`; say what it allows before granting it. Omitted: `view` for new addresses, and guests already on the folder keep their role. | |
| token | Yes | Folder token | |
| emails | Yes | Email addresses to invite | |
| message | No | A note added to the invite email, such as the app's address | |
| organization | No | Workspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one. |