Get Drive File Content
get_drive_file_contentGet the contents of any Google Drive file using its file ID. Native Google files, Office documents, PDFs, images, and more are converted to readable text, CSV, or base64.
Instructions
Retrieves the content of a specific Google Drive file by ID, supporting files in shared drives.
• Native Google Docs, Sheets, Slides → exported as text / CSV. • Office files (.docx, .xlsx, .pptx) → unzipped & parsed with std-lib to extract readable text. • PDFs → text extracted with pypdf when possible; scanned/image-only PDFs fall back to a download hint. • Images → returned as base64 with MIME metadata for multimodal clients. • Any other file → downloaded; tries UTF-8 decode, else notes binary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Drive file ID. | |
| user_google_email | Yes | The user’s Google email address. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |