drive_download_file
Download a Google Drive file to a local path. Exports native Workspace files (Docs, Sheets, Slides) by default, or choose a specific export MIME type.
Instructions
Download a Drive file to an exact local path. Native Google Workspace files are exported (Docs as text, Sheets as CSV, Slides as text) unless export_mime_type is specified.
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": {
"file_id_or_url": "<file_id_or_url>",
"dest_path": "<dest_path>"
},
"name": "drive_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Google account email. May be omitted when exactly one account is configured; required when multiple accounts are configured. | ||
| dest_path | Yes | Absolute local output file path; parent directories are created | |
| file_id_or_url | Yes | A Google Drive file/folder ID or a Google Drive/Workspace URL | |
| export_mime_type | No | Optional export MIME type for a native Google Workspace file |