read_file_content
Fetch a file's content as text from Google Drive. Converts Docs to Markdown, Sheets to CSV, Slides to text; returns text-based files as-is.
Instructions
Return a file's content as text. Google Docs export as Markdown, Sheets as CSV (first sheet), Slides as plain text; text, Markdown, CSV, JSON and similar files are returned as-is. Binary files such as PDFs and images cannot be read this way; use download_file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | ||
| format | No | Export format for Google-native files. Default md for Docs, csv for Sheets, txt for Slides. | |
| maxChars | No | Truncate after this many characters (default 50000). |