Share Drive file
google_drive_shareShare Google Drive files with users, groups, anyone with link, or domains; set access roles and optionally transfer ownership.
Instructions
Share a file with a user/group by email, anyone with the link, or a domain; optionally transfer ownership.
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>",
"role": "<role>"
},
"name": "google_drive_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Access role. | |
| type | No | Permission type (default user). | |
| No | Recipient email (required for type user/group). | ||
| domain | No | Domain for type=domain, e.g. example.com. | |
| fileId | Yes | Drive file ID. | |
| account | No | Account nickname to use. | |
| transferOwnership | No | Transfer ownership to the recipient (requires role=owner). | |
| sendNotificationEmail | No | Email the recipient (default true). |