drive_share_link
Retrieve a Drive item’s shareable link and optionally change who can open it by setting General access; requires confirmation for this outward-facing change.
Instructions
Get an item's link and optionally change its General access (who can open the link).
The General access choices are set by the organisation (on this account: "Restricted" and
an organisation-defined scope); an unknown access fails listing the offered options.
Use drive.sharing to only read (no confirm needed).
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. | |
| index | No | Index from the last drive.list / drive.search. | |
| access | No | New General access, as the option label Drive shows (case-insensitive prefix, e.g. "Restricted"); omit to keep it. | |
| confirm | No | Must be true: this action is outward-facing or destructive. | |
| copy_link | No | Also read the link ("Copy link"; it ends up in the phone's clipboard). | |
| occurrence | No | Which item when several share the name (0 = first). |