download_file_content
Download one Drive file's raw bytes as base64 (binary-safe — images, PDFs, etc.). NOT for Google-native Docs/Sheets/Slides (no raw binary exists — use read_file_content with export_mime_type instead). Hard-capped at 5MB; larger files error rather than silently truncating. Needs the Drive CONTENT scope (drive.readonly). Pass account when more than one content-capable account is connected.
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": "<file_id>"
},
"name": "download_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Account label the file belongs to. Required when several content-capable (drive.readonly) accounts are connected. | |
| file_id | Yes | Drive file id (from search_drive_files or get_file_metadata). Not for Google-native Docs/Sheets/Slides — use read_file_content for those. |