Share a doc (person or link)
share_docGrant access to a Google Doc by sharing with specific people via email or setting anyone-with-link permissions. Control roles like reader, commenter, or writer, and optionally send notifications.
Instructions
Grant access to a Google Doc. With email, share with that person as reader/commenter/writer (optionally sending a notification). Without email, set anyone-with-link access to that role, or role "none" to disable link sharing. (To revoke a specific person’s access, use unshare_doc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | access level; default writer. "none" (link only) disables link sharing. | |
| No | person to share with; omit to set anyone-with-link access instead | ||
| notify | No | when sharing with a person, send a notification email (default true) | |
| account | No | Google account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account. | |
| documentId | Yes |