Google Docs
io.google-docs Storage v0.1.0 Works with Google Docs (API v1): create a document (with optional initial text), get a document's plain text, insert text at the end or an index, or replace every match of a phrase. Uses a Google OAuth2 credential's access token.
Ports
| Direction | Port | Label |
|---|---|---|
| Input | input | Payload |
| Output | output | Result |
Properties
| Property | Type | Default | Description |
|---|---|---|---|
CredentialcredentialId | credential | "" | Use a stored credential for this connection — its fields are filled in at run start. Pick "None" to enter the connection details manually. accepts credential templates: google-oauth2 |
Access tokenaccessToken | string | "" | Google OAuth2 access token — use ${credential.google-oauth2.accessToken}. Empty is allowed here; it must resolve by run time. |
Operationoperation | select | "create" | Create a document, get a document's plain text, insert text, or replace every match of a phrase. creategetinsertTextreplaceAll |
Titletitle | string | "" | Title of the new document. Shown when (operation ?? "create") === "create" |
Document IDdocumentId | string | "" | The document's ID — the long token in its URL between /d/ and /edit. Shown when (operation ?? "create") !== "create" |
Texttext | string | "" | Create: optional initial text. Insert text: the text to insert — leave blank to insert the input payload (strings as-is, anything else as pretty JSON). Shown when ["create", "insertText"].includes(operation ?? "create") |
Insert atlocation | select | "end" | Insert at the end of the document, or at a specific body index. endindex Shown when operation === "insertText" |
Indexindex | int | 1 | Body index to insert at (Docs body indexes start at 1). Shown when operation === "insertText" && location === "index" |
Findfind | string | "" | The text to find. Shown when operation === "replaceAll" |
Replace withreplace | string | "" | The replacement text. Shown when operation === "replaceAll" |
Match casematchCase | boolean | false | Only replace matches with the same letter case. Shown when operation === "replaceAll" |
Base URLbaseUrl | string | "" | Docs API base URL (override for testing; also NINER_GOOGLE_DOCS_API_BASE). Blank = https://docs.googleapis.com. |
Timeout (ms)timeoutMs | int | 30000 | Abort each API request after this many milliseconds. |
This page is generated from the node registry by gen-node-docs.mjs on every
site build — ports, properties, defaults and visibility rules cannot drift from the code.