Create a share link
create_linkCreate a public share link for a file or folder, with an optional password, expiry and download limit.
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": {
"fileId": "<fileId>"
},
"name": "create_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The file or folder id | |
| password | No | A password visitors must type | |
| expiresAt | No | When the link stops working, an ISO 8601 date | |
| maxDownloads | No | Downloads allowed before it stops |