files_share_file
Share a file by generating a shareable link or granting specific users access with viewer, commenter, or editor permissions.
Instructions
Create a shareable link or grant a user access to a file.
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": {
"file_id": "<file_id>"
},
"name": "files_share_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Permission to grant. | |
| No | User to share with. | ||
| file_id | Yes | File to share. |