Find & replace text
replace_textFind and replace literal text across a Google Slides deck—covering shapes, table cells, and speaker notes. Limit changes to selected slides with page_object_ids, and get the count of occurrences changed.
Instructions
Finds and replaces every occurrence of a string across the whole deck — shapes and table cells on slides, and their speaker notes (batchUpdate replaceAllText). Scope it with page_object_ids to touch only specific slides. Matching is literal (no regex), case-sensitive by default (match_case=false to ignore case). Returns occurrencesChanged in the reply — 0 means nothing matched, check the exact wording with list_slides. The classic template flow: duplicate a template deck, then replace {{placeholders}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | The literal text to find (no regex). | |
| replace | Yes | The replacement text (empty string deletes the matches). | |
| match_case | No | Case-sensitive matching (default true). | |
| page_object_ids | No | Limit the replacement to these slides/pages (default: the whole presentation). | |
| presentation_id | Yes | The presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output. |