Share a Drive file
drive_shareShare a Google Drive file by granting access to a specific user, group, domain, or anyone with a link, choosing read, comment, or edit permissions without transferring ownership.
Instructions
Grant someone access to a file. This GIVES AWAY ACCESS to real data and cannot be undone from here. type "user" or "group" needs "email_address"; "domain" needs "domain"; type "anyone" makes the file readable by ANYONE WITH THE LINK, so only use it when the user asked for a public link in so many words. No notification email is sent unless "notify" is true.
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": {
"account": "<account>",
"file_id": "<file_id>",
"type": "<type>",
"role": "<role>"
},
"name": "drive_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | What they may do. Ownership transfer is deliberately not offered. | |
| type | Yes | Who the permission is for. "anyone" means a public link. | |
| domain | No | Required for type "domain". | |
| notify | No | Send Google’s notification email. Defaults to false. | |
| account | Yes | Configured account: the email address, or the alias given at setup. | |
| file_id | Yes | File to share. | |
| message | No | Note included in the notification email. | |
| email_address | No | Required for type "user" or "group". |