drive_export_file
Read Google Sheets or Docs as CSV or plain text by file ID. Refuses binaries, truncates at 200 KB and saves full export to the account's download directory.
Instructions
Read the content of a Google-native document on Drive: a Google Sheet as CSV (one tab, default the first; pass sheet to pick another by title) or a Google Doc as plain text. Read-only and never a binary file: a PDF, image, or uploaded .xlsx is refused. The text in the result is capped at 200 KB; a larger export is truncated on a line boundary, and the full text is written into the account's download directory (OCTOMAIL_DOWNLOAD_DIR/) with its path returned as savedTo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | For a Google Sheet: the tab title to read (exact match). Defaults to the first tab. | |
| fileId | Yes | Drive file id of a Google Sheet or Google Doc. | |
| account | Yes | Configured Gmail account alias, e.g. work, personal, support. |