drive_share
Share a Google Drive file or folder with people by email, assign viewer/commenter/editor access, and optionally send a notification message.
Instructions
Share a file or folder with people (Share > add people, role, notify, Send).
Requires confirm=true (outward-facing or destructive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact item name in the current location (or in path). | |
| path | No | Folder holding the item ("/A/B" from My Drive, "A/B" relative); default: current. | |
| role | No | viewer, commenter or editor (commenter is only offered for files). | viewer |
| index | No | Index from the last drive.list / drive.search. | |
| emails | Yes | E-mail addresses of the people/groups to add. | |
| notify | No | Send them an e-mail notification. | |
| confirm | No | Must be true: this action is outward-facing or destructive. | |
| message | No | Optional message for the notification (needs notify=true). | |
| occurrence | No | Which item when several share the name (0 = first). |