move_content
Move a page and its subtree to a new parent or sibling position. Re-parenting changes the URL path and automatically applies a 301 redirect to the old URL.
Instructions
Move a page in the tree: give parentId to re-parent it (its URL path changes with its new position, and the old URL gets a 301 automatically), and/or beforeId/afterId to place it among its siblings. The page's whole subtree moves with it. Sibling order only sticks under a parent whose child sort is manual; a computed sort (name, date…) re-orders it. Returns {ok:true}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. | |
| afterId | No | Place it directly after this sibling (documentId). | |
| beforeId | No | Place it directly before this sibling (documentId). | |
| parentId | No | documentId of the new parent page; null moves it to the top level. Omit to keep the current parent. | |
| documentId | Yes | The item's documentId (stable across locales and versions), e.g. from tree, list_pages or get_content. |