create_share
Share a Nextcloud file or folder as a public link or with a user, group, or email address; public shares return the link.
Instructions
Share a file or folder: a public link (default), or with a user, group or email address. Returns the link for public shares.
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": "create_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Note for the recipient | |
| path | Yes | File or folder path | |
| type | No | Share type | link |
| label | No | Label of a public link | |
| password | No | Password for a public link | |
| share_with | No | User ID, group ID or email (not for links) | |
| expire_date | No | Expiry date YYYY-MM-DD | |
| permissions | No | read; edit (read+update+create+delete); upload_only (file drop, folders and links only) | read |