drive_share_file
Share a Google Drive file or folder with another user by specifying their email and permission role. Optionally send a notification.
Instructions
Share a file or folder with another user.
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": {
"email": "<email>",
"fileId": "<fileId>",
"shareWithEmail": "<shareWithEmail>"
},
"name": "drive_share_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Permission role to grant (default: reader). | |
| Yes | The authenticated Google account. | ||
| fileId | Yes | The file or folder ID to share. | |
| shareWithEmail | Yes | The email address of the person to share with. | |
| sendNotification | No | Whether to send a notification email to the recipient (default: true). |