Create or update public link
drive_share_set_urlCreate or update a public Proton Drive share link for a file path with role, password, and expiration; anyone with the link can access it without a Proton account.
Instructions
Create or update a public share link: anyone with the link gets the given role, no Proton account needed. Calling again on the same path REPLACES the link's settings (same URL): omitting password/expiration removes them, and the result then carries a warning. Expiration is at most ~90 days out. Returns {url?, role?, expirationTime?, warning?}; fields may be absent. The password is passed as a CLI argument and is visible in the process list and shell history of the machine running this server. For private sharing use drive_share_invite. Requires confirmed=true after explicit user approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute remote Drive path to create a public link for (must start with '/'). | |
| role | No | Access level for anyone with the link. Defaults to 'viewer' if omitted. | |
| password | No | Optional custom password required to access the link. Omit for no password. | |
| confirmed | No | Must be true; only after the user approved this exact action. | |
| expiration | No | Optional expiration date in ISO format, e.g. '2026-06-06'. Omit for no expiration. |