gdrive_read_large_file
Read large Google Drive files exceeding 20MB with streaming, or access specific byte ranges for partial reads. Solves size limit errors from standard file reading.
Instructions
Read large files (>20MB) from Google Drive with streaming support, or read specific byte ranges from any file. Use this for partial file reading or when gdrive_read_file fails due to size limits. Not suitable for Google Docs/Sheets or files requiring text extraction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | ID of the file to read | |
| endByte | No | Ending byte position (inclusive) | |
| encoding | No | Text encoding (default: utf-8) | |
| maxBytes | No | Maximum bytes to read (default: 10MB). Use this to read files in chunks when dealing with very large files. | |
| startByte | No | Starting byte position (0-based) |