Get Document
google_docs.get
ActionFiles & storageconnection required
Calls documents.get with includeTabsContent and flattens paragraphs, tables and each tab to text.
Read a Google Doc and return its plain text (all tabs).
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Docs
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- token_uri
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
document_id Id of the document (the long segment in its /document/d/<id>/edit URL). | string | Yes | — | — | — |
include_tabs Read every tab. Turn it off and the API returns only the first tab's body — the rest of the document is silently missing. | boolean | No | true | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"include_tabs": true
}Output
One shape.
document
| Field | Type | Example |
|---|---|---|
ok | boolean | true |
document_id | string | — |
title | string | — |
revision_id Revision the text was read at. | string | — |
text Every tab's text, in document order. | string | — |
characters Length of text. | number | — |
tab_count | number | — |
tabs[].tab_id | string | — |
tabs[].title | string | — |
tabs[].index | number | — |
tabs[].text | string | — |
{
"characters": 0,
"document_id": "",
"ok": true,
"revision_id": "",
"tab_count": 0,
"tabs": [
{
"index": 0,
"tab_id": "",
"text": "",
"title": ""
}
],
"text": "",
"title": ""
}Related Google Docs nodes
See Get Document run in a workflow.
In a technical demo we add the Google Docs connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.