find-and-replace-in-page
Find text in a Notion page and replace it with Markdown-formatted content. Supports regex for advanced pattern matching.
Instructions
Find text in a page and replace it with new content. Supports regex patterns (use_regex: true) for advanced matching (e.g., "item\d+" matches item1, item2). All matching blocks will be updated. Replacement text supports Markdown formatting: bold, italic, strikethrough, code, links. Only works with text-based blocks: paragraph, headings, lists, to_do, quote, callout, toggle. Use this for partial updates. For full page rewrite, use replace-page-content instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page ID | |
| find | Yes | Text to find (string or regex pattern if use_regex is true) | |
| replace | Yes | Replacement text (supports Markdown: **bold**, *italic*, etc.) | |
| use_regex | No | If true, treat find as a regex pattern (default: false) |