Create or update public link
drive_share_set_urlCreate or update a public Proton Drive share link so anyone with the URL can access the path as viewer or editor without a Proton account, with optional password and expiration.
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. So when the path already has a link with a password and/or expiration that this call omits, the call is refused before any change, naming what would be lost, unless resetSettings=true (also refused when the existing settings cannot be read). 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. The server asks the user to approve this itself.
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": {
"path": "<path>"
},
"name": "drive_share_set_url"
}
}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. Omitted: an existing link keeps its role, a new one is 'viewer'. | |
| password | No | Optional custom password required to access the link. Omit for no password. | |
| confirmed | No | Optional and ignored: the server asks the user to approve this itself. You do not need to send it. | |
| expiration | No | Optional expiration date in ISO format, e.g. '2026-06-06'. Omit for no expiration. | |
| resetSettings | No | Set true to deliberately drop an existing link's password and/or expiration that this call does not pass again. Without it such a call is refused. |