notion_update_page_content
Edit a Notion page by finding exact markdown text and replacing or deleting it; read the page markdown first to copy the exact text to change.
Instructions
Edit page content using search-and-replace on the page's markdown.
Finds old_text in the page content and replaces it with new_text. Use notion_read_page_markdown first to see the current content and copy the exact text to replace.
page_id: the page to edit. old_text: exact text to find in the page content. new_text: replacement text (use empty string to delete). replace_all: if old_text occurs more than once the edit is rejected unless this is True (then every occurrence is replaced). allow_deleting_content: must be True for an edit that would delete a child page or database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| new_text | Yes | ||
| old_text | Yes | ||
| replace_all | No | ||
| allow_deleting_content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |