Find and Replace Text
notion_replace_textFind and replace text across a Notion page, preserving formatting and mentions. Preview changes with dry_run, then revert all edits together via undo.
Instructions
Find and replace text across a page while keeping bold/italic/links/colors and mentions intact: every text block, table cell, and code caption, plus the page title (include_title). Supports regex with $1-style groups. Defaults to dry_run=true, which shows every change (before/after) so you can confirm. Matches that cross a mention or equation are skipped and reported. Sub-pages are separate documents and aren't searched. All changes revert together with notion_undo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| page | Yes | ||
| regex | No | ||
| dry_run | No | ||
| replace | Yes | ||
| block_ids | No | Limit to these blocks. | |
| include_title | No | Also replace in the page title. | |
| case_sensitive | No | ||
| max_replacements | No |