file_share
Create a public link to share a file or folder with recipients who lack filex access, optionally protected by a PIN, expiry date, or download limit.
Instructions
Create a public share link for a file or folder (folders download as a ZIP). Returns the URL, a one-time PIN if pin=true, and download_command: the ready curl and PowerShell lines that fetch it (PIN, folder ZIP and redirects already handled - pass them on as they are). Use this to hand a file to someone without filex access - do NOT stream large files back through file_read. An end-to-end encrypted folder and anything inside it is never shared (E2E_ENCRYPTED). A single encrypted file (.fxe) is: the result says encrypted: true, and its recipient needs the file's password to open it.
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": "file_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | generate a random PIN to protect the link | |
| path | Yes | adapter://file-or-folder to share (folders download as a zip) | |
| max_downloads | No | max downloads (0 = unlimited) | |
| expires_in_days | No | link expiry in days (0 = never) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | ||
| url | Yes | ||
| path | Yes | ||
| token | Yes | ||
| has_pin | Yes | ||
| encrypted | No | ||
| expires_at | No | ||
| max_downloads | No | ||
| download_command | No |