gdrive_read_file
Read file contents from Google Drive, including Docs, Sheets, PDFs, and text files. Specify file name or ID to retrieve content as text or CSV.
Instructions
Read the contents of a file from Google Drive.
Supports:
Google Docs (exported as plain text)
Google Sheets (exported as CSV)
PDFs (text extracted)
Text files (.txt, .md, .csv, .json, etc.)
Args: file_name: Name of the file to read (e.g., "My Document" or "report.pdf") max_chars: Maximum characters to return (default: 100000) file_id: Optional stable file ID from gdrive_search (preferred when known)
Discovery: use gdrive_search, gdrive_list_folder, or gdrive_list_folder_recursive first to find the exact file_name or file_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | No | ||
| file_name | No | ||
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |