Get Google Doc
docs_getRead a Google Doc's content and structure, including start/end indices for paragraphs and text runs, to plan and verify batch edits.
Instructions
Read a Google Doc's content and structure (documents.get).
The returned resource's body.content elements carry startIndex/endIndex
for every paragraph and text run — use them to compute the index arguments
that docs_batch_update requests need, and to verify an edit landed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Optional partial-response field mask (e.g. `title,body(content(startIndex,endIndex,paragraph))`) to keep large documents readable. | |
| documentId | Yes | Target document id. | |
| user_google_email | Yes | ||
| includeTabsContent | No | Set True for documents with multiple tabs — the default response only carries the first tab's content in `body`, while `tabs[]` holds the rest. Note docs_replace_all_text applies across ALL tabs regardless. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||