Replace text in Google Doc
Replace every occurrence of one or more texts in a Google Docs document, such as placeholders in a template.
Command in the Google Workspace toolkit · id ooa.google/docs_replace_text · 5 inputs (3 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Document ID | String | Yes | The document: its id, or its full link (https://docs.google.com/document/d/...). | |
| Replacements | Dictionary | Yes | Text to find as each key, and the text to put in its place as the value. | |
| Match case | Boolean | No | false | Only replace text with the same upper and lower case. |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. |
Outputs
| Output | Type | What it is |
|---|---|---|
| occurrences_changed | Number | Total number of places changed. |