Actions4
- Document Actions
Document → Replace Text
AI-generatedSummary
Replace all occurrences of specified text in a Google Docs document with new text using Google Docs API.
Inputs
- Authentication (required) — Choose between using refresh token (auto-refresh) or bearer token (manual) for authentication.
- Document ID (required) — The ID of the Google Docs document in which to replace text.
- Find Text (required) — The exact text string to find in the document (case-sensitive).
- Replace With (required) — The text string to replace the found text with.
- Options — Optional settings, including an override for the refresh token used for authentication.
Output shape
a single JSON object per input item containing the result of the replace operation with the document ID and API response metadata
The output includes the raw API response from the Google Docs batchUpdate method indicating the update status; the operation replaces all case-sensitive matches of the Find Text with the Replace With text. Errors during execution can be captured if 'continueOnFail' is enabled.