Read a Google Doc
read_docExtract the full plain text, tab names, and dropdown chip values from a Google Doc by its ID or URL. Use it to read docs created in the app or ones the user picked, including every tab.
Instructions
Read the text of a Google Doc Hermoso can reach — one it created, or one the user handed over with the Google file picker in the app (that is how an EXISTING doc becomes readable; find its id with list_drive_files). Pass documentId (from create_doc) OR paste a Google Docs URL as docUrl. Under the drive.file scope it reaches nothing else in the user’s Drive; if Google answers that the file was not found, the user has not picked it yet — ask them to pick it in the app rather than retrying. Returns the plain text of EVERY tab (each headed by its tab name when there are several), with smart chips (dropdowns, people, dates, rich links) shown as the text Docs displays, plus dropdowns[] — each chip with its title, current value and options, which is what update_doc dropdowns sets. Read-only, free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docUrl | No | a Google Docs URL to read — the document id is extracted from it | |
| documentId | No | the document id (from create_doc) |