create_org_share_link
Make a link that gives access to a folder or document. Two audiences: omit emails and anyone who opens it can claim it, or pass emails and only those addresses can — safe to forward either way, but only the second is safe to post. Use it when you have been asked to share something and have no addresses, or have them and would rather send one link than mail everybody. Sends nothing by itself; access happens when a person opens it and signs in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | what whoever opens the link gets: 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 | No | restrict the link to these addresses — only they can claim it, whoever else ends up holding it. Omit for a link anyone who opens it can use. | |
| 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 |