drive_share_file
Share Google Drive files by creating permissions for users, groups, domains, or anyone. Requires confirmation to safely expose the file.
Instructions
Share a Google Drive file by creating a permission. Requires confirm: true as a safety gate since sharing exposes the file to others.
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": {
"accountId": "<accountId>",
"fileId": "<fileId>",
"type": "<type>",
"role": "<role>"
},
"name": "drive_share_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Permission role | |
| type | Yes | Permission type | |
| domain | No | Domain (required for domain type) | |
| fileId | Yes | The file ID to share | |
| confirm | No | Set to true to confirm sharing | |
| accountId | Yes | The Google account ID, alias, or email | |
| emailAddress | No | Email address (required for user/group type) | |
| sendNotification | No | Send notification email (default: false) |