get_drive_file_download_url
Downloads a Google Drive file as a binary file or generates a temporary download URL. Supports exporting native Google files (Docs, Sheets, Slides) to formats like PDF, DOCX, XLSX, CSV, or PPTX.
Instructions
Save a Drive file to disk (or expose a temporary URL).
Side effects: writes a file to the configured attachment storage (stdio mode) or publishes a download URL valid for 1 hour (HTTP mode). For file text content use get_drive_file_content instead; use this when you specifically need the binary file or an export. Google-native files are exported — Docs → PDF or DOCX; Sheets → XLSX, PDF, or CSV; Slides → PDF or PPTX. Other files download as-is. Requires the drive.readonly OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| file_id | Yes | Drive file ID from search_drive_files or a URL like drive.google.com/file/d/<id>/view. | |
| export_format | No | Export target for Google-native files. Docs: "pdf" (default) or "docx". Sheets: "xlsx" (default), "pdf", or "csv". Slides: "pdf" (default) or "pptx". Ignored for non-native files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |