replace-page-content
Replace all page content with Markdown. Preserves child databases and pages. Non-Markdown blocks are deleted; use dry run to preview deletions.
Instructions
Replace all page content with Markdown. Preserves child_database/child_page only. WARNING: Non-Markdown blocks (bookmark, callout, equation, etc.) will be DELETED. Use dry_run: true to preview deletions. For partial updates, use find-and-replace-in-page.
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>",
"content": "<content>"
},
"name": "replace-page-content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page ID | |
| content | Yes | Content in Markdown | |
| dry_run | No | Preview mode: shows which blocks will be deleted without actually modifying the page (default: false) |