edit_page
Update specific page content while leaving the rest unchanged: replace text or sections, insert content, or delete sections in ordered, atomic writes.
Instructions
Edit parts of a page, leaving the rest as is. edits run in order, written once; if any fails nothing is written. Modes: replace_text (old_text must match once in one paragraph, or use replace_all), replace_section (keeps the heading, replaces what is under it), insert_after_section (after its subsections), insert_in_section (at=start, or at=end, the default: end of its own body before any subsection), delete_section. heading is the text, or '## Text' to pin the level.
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>",
"edits": "<edits>"
},
"name": "edit_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | ||
| dry_run | No | Preview the resulting Markdown without writing | |
| page_id | Yes | UUID or slugId | |
| expected_updated_at | No | updatedAt from get_page; refused if the page changed since |