drive_download_file
Download any file from Google Drive to your local machine. Exports Google Workspace files to standard formats like txt or csv.
Instructions
Download a file from Google Drive and save it to a local directory. Google Workspace files (Docs, Sheets, Slides) are exported to standard formats (txt, csv, etc.).
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": {
"accountId": "<accountId>",
"fileId": "<fileId>",
"outputDir": "<outputDir>"
},
"name": "drive_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The file ID to download | |
| fileName | No | Override the file name (default: original name from Drive). For Workspace files, include the export extension. | |
| accountId | Yes | The Google account ID, alias, or email | |
| outputDir | Yes | Absolute path to the local directory where the file will be saved |