share_drive_file
Grant access to Google Drive files by setting permissions like reader, commenter, or writer, and optionally notify the recipient.
Instructions
Share a Google Drive file by adding a permission.
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>",
"role": "<role>",
"type": "<type>"
},
"name": "share_drive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Permission role. | |
| type | Yes | Permission type. | |
| No | Email address of the person to share with (for type=user or type=group). | ||
| account | Yes | Account id. | |
| file_id | Yes | Google Drive file ID. | |
| send_notification | No | Send notification email (default true). | |
| notification_message | No | Optional message included in the share notification email. |