Share a Drive file with someone
share_gdrive_itemGive a named person access to a file or folder by their email address, and get back the link to pass on. Only named people — there is no "anyone with the link" option, so someone without a Google account cannot be given access. The person is NOT emailed: send them the link yourself with send_gmail_message if they should know. Ask the user to confirm before sharing anything.
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": {
"mailbox": "<mailbox>",
"itemId": "<itemId>",
"email": "<email>"
},
"name": "share_gdrive_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Defaults to reader | |
| Yes | Email address of the person to give access to | ||
| itemId | Yes | ||
| mailbox | Yes | Email address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| expiresInDays | No | Access is removed automatically after this many days, up to 365 |