share_spreadsheet
Share a Google Spreadsheet with multiple recipients by email and assign each reader, commenter, or writer access in one batch.
Instructions
Share a Google Spreadsheet with multiple users via email, assigning specific roles.
Recipients share concurrently rather than one at a time. If the caller
supplied a progressToken, a notifications/progress update is sent as each
share finishes (#355).
Args: spreadsheet_id: The ID of the spreadsheet to share. recipients: A list of dictionaries, each containing 'email_address' and 'role'. The role should be one of: 'reader', 'commenter', 'writer'. Example: [ {'email_address': 'user1@example.com', 'role': 'writer'}, {'email_address': 'user2@example.com', 'role': 'reader'} ] send_notification: Whether to send a notification email to the users. Defaults to True.
Returns: A dictionary containing lists of 'successes' and 'failures'. Each item in the lists includes the email address and the outcome.
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": {
"spreadsheet_id": "<spreadsheet_id>",
"recipients": "<recipients>"
},
"name": "share_spreadsheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipients | Yes | ||
| spreadsheet_id | Yes | ||
| send_notification | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||