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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"file_id": "<file_id>",
"enabled": "<enabled>"
},
"name": "drive_file_link_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | reader | |
| account | Yes | ||
| enabled | Yes | ||
| file_id | Yes |