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

DirectionPortLabel
InputinputPayload
OutputoutputResult

Properties

PropertyTypeDefaultDescription
Credential
credentialId
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 token
accessToken
string "" Google OAuth2 access token — use ${credential.google-oauth2.accessToken}. Empty is allowed here; it must resolve by run time.
Operation
operation
select "create" Create a document, get a document's plain text, insert text, or replace every match of a phrase.
creategetinsertTextreplaceAll
Title
title
string "" Title of the new document.
Shown when (operation ?? "create") === "create"
Document ID
documentId
string "" The document's ID — the long token in its URL between /d/ and /edit.
Shown when (operation ?? "create") !== "create"
Text
text
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 at
location
select "end" Insert at the end of the document, or at a specific body index.
endindex
Shown when operation === "insertText"
Index
index
int 1 Body index to insert at (Docs body indexes start at 1).
Shown when operation === "insertText" && location === "index"
Find
find
string "" The text to find.
Shown when operation === "replaceAll"
Replace with
replace
string "" The replacement text.
Shown when operation === "replaceAll"
Match case
matchCase
boolean false Only replace matches with the same letter case.
Shown when operation === "replaceAll"
Base URL
baseUrl
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.