Download file content
download_fileDownloads a file's bytes from Google Drive by file ID, saving to a local path or returning small text inline. Handles shortcuts and flagged malware with proper parameters.
Instructions
Downloads a binary file's bytes. With save_path (absolute local path) the file is written to disk (refuses to overwrite unless overwrite=true) and the result reports saved_to/bytes; without save_path small textual files (≤100 KB, text/JSON/XML) are returned inline as content. Google-native files (Docs/Sheets/Slides — mimeType application/vnd.google-apps.*) have no bytes: this tool rejects them, use export_file; for a shortcut it names the real target to download instead. acknowledge_abuse=true downloads a file Drive flagged as malware/abuse (owner only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | The file id — the long id from the Drive URL (drive.google.com/file/d/<fileId> or docs.google.com/.../d/<fileId>/edit) or from search_files/get_file output. Folders and shared-drive items are files too. | |
| overwrite | No | Replace save_path if it already exists (default false). | |
| save_path | No | Absolute local path to write the file to (required for binary or >100 KB content). | |
| acknowledge_abuse | No | Download even though Drive flagged the file as abusive (owner only). |