Update a Docmost page
update_pageUpdate Docmost pages in Markdown by replacing, appending, prepending, or deleting content under a heading; also rename pages, change icons, and add or remove labels.
Instructions
Writes Markdown to a page, replacing, appending to or prepending to the whole body or, with heading, only the part under that heading, which can also be deleted, and can rename the page, change its icon, or in a call of their own add and remove labels; a whole-body replace is refused on pages holding content Markdown cannot carry, such as mentions or comments.
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": {
"pageId": "<pageId>"
},
"name": "update_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | New emoji icon. | |
| title | No | New page title. | |
| pageId | Yes | Page id, slug id, or the full page URL copied from the browser. | |
| heading | No | Apply the operation to this heading's section, down to the next heading of the same or a higher level, merging with anyone editing; text ignoring case and any leading #. | |
| markdown | No | New Markdown content; omit to change only the title or icon. Under a heading it may hold headings, paragraphs, lists, task lists, code blocks, quotes and rules, with bold, italic, strikethrough, code and links. | |
| addLabels | No | Label names to add; Docmost lowercases them, turns spaces into hyphens and allows only letters, numbers, -, _ and ~. | |
| operation | No | How markdown is applied; defaults to replace. With heading, replace swaps the content under it, prepend adds right under it, append adds after its subsections, and delete removes the heading with its content. | |
| removeLabels | No | Label names to remove; each must already be on the page. | |
| expectedUpdatedAt | No | updatedAt from your last get_page; the change is refused if the page changed since. |