Share a folder
folders_shareShare one of the user's private folders, as its ⋮ Share in Humble does. It can't be undone: it makes a new shared folder of the same name, moves into it the folder's notes and tasks that the user owns or is an admin of, and shares it with share_with, each one of the user's contacts (by contact_uuid or email) or groups (by group) at one of a shared folder's roles. Contacts, and notes and tasks only shared with the user, stay in the private folder, which goes once nothing stays. Call it first without confirm: nothing changes, and the answer says what would move and stay. Show the user that and ask. Only once they agree, call again with confirm true: it returns the new shared folder as folders_get does. To add people to a shared folder there already is, use sharing_add.
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": {
"folder": "<folder>",
"share_with": "<share_with>"
},
"name": "folders_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | The private folder's name, as folders_list returns it | |
| confirm | No | true shares it, once the user has agreed to what the answer without it said | |
| share_with | Yes | Who to share it with, each one of the user's contacts or groups, at a role |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Opens a shared folder in Humble | |
| role | No | The user's role in a shared folder | |
| uuid | No | A shared folder's | |
| moves | No | The notes and tasks that would move into the shared folder | |
| notes | No | ||
| owner | No | Who made a shared folder: always an admin of it | |
| stays | Yes | What stays, or would stay, in the private folder | |
| tasks | No | ||
| colour | No | manila is a folder's own until another is picked | |
| folder | Yes | Its name, as the user typed it | |
| can_add | No | Whether the user may add notes and tasks to a shared folder | |
| message | No | ||
| contacts | No | ||
| confirmed | Yes | false: nothing changed yet, the answer says what sharing would do | |
| can_manage | No | Whether the user may rename or recolour a shared folder, take others' things out of it and change who it's shared with: its admins | |
| share_with | No | Before `confirm`: who it would be shared with | |
| notes_total | No | ||
| shared_with | No | Who else may open it, besides its owner, as its Share tab in Humble lists them | |
| tasks_total | No | ||
| contacts_total | No | ||
| folder_deleted | Yes | Whether the private folder goes, or would, as nothing stays in it |