replace_slides_text
Replace all occurrences of literal text in a Google Slides presentation, including shapes, tables, and speaker notes. Supports case-sensitive or insensitive matching.
Instructions
Find-and-replace a literal string across every text element in the deck.
Scans all slides, text boxes, shapes, table cells, and speaker notes.
Replaces every occurrence of find_text with replace_text in a single
batch operation. Plain substring match — no regex, wildcards, or whole-word
matching. To do scoped replacement within a single element, edit the text
range directly via format_slides_text or modify_doc_text equivalents.
Requires OAuth scope: https://www.googleapis.com/auth/presentations (write).
Idempotent: re-running after all matches are replaced is a no-op (returns
0 occurrences).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| presentation_id | Yes | Google Slides presentation ID (from the URL after `/d/`). | |
| find_text | Yes | Literal text to search for. Exact-match substring; no regex, no special characters. Must be non-empty (empty string errors). Newlines inside `find_text` only match if the original document has the same literal newline characters. | |
| replace_text | Yes | Text to substitute for each occurrence. Can be empty to effectively delete matches. | |
| match_case | No | When `True` (default), matching is case-sensitive (`Hello` won't match `hello`). When `False`, case-insensitive — any capitalization variant matches and is replaced by the literal `replace_text` verbatim (original casing is not preserved). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |