get_doc_content
Extract body text from Google Docs or Drive-stored .docx files, with support for nested tab content.
Instructions
Retrieve Doc body text (native Google Docs or Drive-stored .docx).
For native Google Docs uses the Docs API and walks tabs (including nested child tabs). For non-native Drive files (.docx, etc.) falls back to the Drive download + text extraction path. For markdown output use get_doc_as_markdown; for structural inspection (style, headings, objects) use inspect_doc_structure. Requires both drive.readonly and docs.readonly OAuth scopes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| document_id | Yes | Doc ID or a full URL like docs.google.com/document/d/<id>/edit (either is accepted). | |
| suggestions_view_mode | No | How tracked-changes are rendered: "DEFAULT_FOR_CURRENT_ACCESS" (default), "SUGGESTIONS_INLINE" (show suggestions inline), "PREVIEW_SUGGESTIONS_ACCEPTED" (render as if accepted), or "PREVIEW_WITHOUT_SUGGESTIONS" (render as if rejected). | DEFAULT_FOR_CURRENT_ACCESS |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |