share_file
Grant read, comment, or write access to a Google Drive file for a user, group, domain, or anyone with the link. Optionally send a notification email.
Instructions
WRITES and reaches other people. Grant access to a user, group, domain, or anyone with the link. No email is sent unless sendNotificationEmail 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": {
"fileId": "<fileId>",
"type": "<type>",
"role": "<role>"
},
"name": "share_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| type | Yes | ||
| domain | No | Required for domain. | |
| fileId | Yes | ||
| message | No | Note included in the notification email. | |
| emailAddress | No | Required for user and group. | |
| expirationTime | No | RFC 3339; access ends then. Users and groups only. | |
| sendNotificationEmail | No | Default false. |