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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_id": "<page_id>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "notion_update_page_content"
}
}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 |