gdrive_share
Share a Google Drive file or folder with a collaborator's email to grant reader, commenter, or writer access. Use dry run to preview changes before committing.
Instructions
Share a Google Drive file/folder with a user email.
Discovery: run gdrive_search or gdrive_list_folder first to obtain
file_name / file_id values.
Use this for: granting reader/commenter/writer access to a collaborator. Not for: transferring ownership.
Valid roles: reader, commenter, writer. Use dry_run=True to preview the change without committing.
Args: email: Collaborator email address role: Access role — one of reader, commenter, writer file_name: Name of the file/folder to share file_id: Optional stable file ID (preferred when known) send_notification: Whether Google should email the collaborator dry_run: Preview the share without committing it
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | reader | |
| Yes | |||
| dry_run | No | ||
| file_id | No | ||
| file_name | No | ||
| send_notification | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |