Move Page
move_pageMove or reorder a Docmost page by specifying a new parent or sibling. Automatically computes the correct position, so you don't have to handle fractional indexing manually.
Instructions
Moves or reorders a page. Say where it should go; the position is computed.
Three ways to place a page, in order of preference:
Nest it: pass
parent_page_idand the page becomes a child of that page (appended at the end of its children by default).Reorder it: pass
afterorbeforewith the id of a sibling to sit next to.Neither: the page is appended at the end of its current parent.
You never have to invent a position. Docmost orders pages with fractional indexing — a base62 string it compares lexicographically, which must be 5-12 characters — and that is fiddly to get right by hand. This tool reads the neighbouring positions and generates a valid one in between.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | UUID or slugId of the sibling this page should follow. | |
| before | No | UUID or slugId of the sibling this page should precede. | |
| page_id | Yes | UUID or slugId of the page to move. | |
| parent_page_id | No | UUID or slugId of the new parent. Omit it to leave the page where it is. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||