Update Page
update_pageAppend, prepend, or replace a page body with Markdown; preview changes via dry-run diff and restore saved snapshots when needed.
Instructions
Change a page body with Markdown. Prefer operation 'append' or 'prepend', which keep the existing text, comments and formatting. 'replace' rewrites the whole body; read the page first and send the complete new body. It is refused on pages with formatting Markdown cannot hold (get_page lists it in markdown_loses); use replace_page_json there. 'replace' is also refused while someone else is editing the page. The previous body is saved as a snapshot that restore_snapshot can bring back. With dry_run=true nothing is written and the result shows the change as a diff. To change one part of a long page, prefer replace_section.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page id, slug id or Docmost page URL. | |
| content | Yes | Markdown text. | |
| dry_run | No | Only show the change as a diff; write nothing. | |
| operation | No | append: add at the end; prepend: at the start; replace: all. | append |
| drop_formatting | No | Write even though the page has formatting Markdown cannot hold, which is then removed. Prefer replace_page_json for such pages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||