share_org_folder
Share a folder or document with people by email, so they can read or edit it. Someone in this organization gets an ordinary grant; anyone else gets it in their Shared with me, and a stranger is invited to sign up. TWO CALLS: the first returns exactly who would be mailed and at what level plus a confirm_token, and shares nothing. Show that to the user, then call again with the token. This sends real email and changes who can read their content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | reader opens it; writer also edits; owner also decides who else gets in | |
| token | No | Bearer token identifying the principal. Usually omitted — supplied by the transport (HTTP Authorization header or the server's AGENTLEFS_TOKEN env). Only pass this to override. | |
| emails | Yes | email addresses to share with (at most 20 per call) | |
| location | Yes | full path from the workspace root, e.g. "handbook/vendor/acme.md" (as printed by list_org_docs or search_org_knowledge) | |
| scope_type | No | default folder | |
| confirm_token | No | from the first call. Calling without it PREVIEWS: nothing is shared and no email is sent. |