Rename a page or change its URL
rename_pageRename a page (new_name) and/or move its URL (new_slug). Supply either or both — omitting new_slug derives it from the new name. Every internal link across the site is rewritten to the new URL, the navigation is re-synced, and link TEXT naming the old page is updated too, so this is the ONLY safe way to move a page: editing the file's name through update_variation_file leaves every link pointing at a URL that no longer exists. The homepage's URL cannot be changed. The page's content survives the move — its content namespace is deliberately not recomputed. Publish the site for the change to reach visitors; until then the live site keeps the old URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Current slug of the page, e.g. "/services" | |
| site_id | Yes | The site the page belongs to | |
| new_name | No | New display name, e.g. "Our Services". The stored file identifier is derived from it. | |
| new_slug | No | New URL path, e.g. "/what-we-do". Derived from new_name when omitted. The homepage URL cannot be changed. | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| variation_id | No | Design to edit, from list_variations. Defaults to the active design. |