share_file
Grant access to a file by sharing it with a user's email address, setting a role like reader or writer.
Instructions
Share a file with another user by email address.
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>",
"email": "<email>"
},
"name": "share_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Permission role: 'reader', 'writer', 'commenter', or 'owner'. | reader |
| Yes | Email address of the person to share with. | ||
| file_id | Yes | The ID of the file to share. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |