drive_file_link_access
Enable or revoke 'anyone with the link' access on a Drive file, returning a direct download URL for server-side fetches. Use it to grant temporary access for downloading, then immediately disable it.
Instructions
Toggle "anyone with the link" access on a file the account owns.
Built for zero-bandwidth server-side fetches: some APIs (e.g. a
transcription service's source_url parameter) can download a Drive file
themselves — but only while it is link-accessible. Flow: enable, hand the
returned direct_download_url to the fetching service, then IMMEDIATELY
call again with enabled=false to revoke. Never leave link access on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | reader | |
| account | Yes | ||
| enabled | Yes | ||
| file_id | Yes |