gws-mcp__drive_share_file
Shares a Google Drive file or folder with one person by email address, as reader, commenter or writer. Takes the file ID, the address and the role, and optionally a message for the notification email. Google emails the person unless notify is false. Returns the file ID and its permission list afterwards: who has access, at what role. Sharing a file with someone already on it at another role adds no second entry; Drive keeps one per person. This gives the person access to the file and, for a folder, to what is inside it.
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": {
"file_id": "<file_id>",
"email": "<email>",
"role": "<role>"
},
"name": "gws-mcp__drive_share_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The access to give: reader (view), commenter (view and comment) or writer (edit). | |
| Yes | The email address of the person to share with. | ||
| notify | No | Whether Google emails the person about the share (default: true). | |
| account | No | Optional email address of the connected account to use (e.g. 'user@gmail.com'). If omitted, the default account is used. | |
| file_id | Yes | The Google Drive file or folder ID to share. | |
| message | No | An optional message, sent in the notification email. |