drive_download_file
Download files from Google Drive as base64-encoded data, supporting export of Google Docs, Sheets, and Slides to formats like PDF.
Instructions
Download a file from Google Drive as base64-encoded binary content. Use for images, PDFs, zips, and other non-text files. Google Docs/Sheets/Slides are exported to a concrete format (default PDF).
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": {
"email": "<email>",
"fileId": "<fileId>"
},
"name": "drive_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The authenticated Google account. | ||
| fileId | Yes | The file ID (from drive_list_files or drive_search_files). | |
| exportMimeType | No | MIME type to export Google-native files (Docs/Sheets/Slides) as (default 'application/pdf'). Ignored for non-Google-native files. |