On a block theme, the menu in your header is a Navigation block, and its links live in a navigation post that the Site Editor manages. Editing the classic menus under Appearance does not reach it, which is why a menu change can look like it never happened. Rebuilding the header links by hand in the Site Editor is fiddly, especially with dropdowns.
This prompt reads the real navigation, agrees the new structure with you, and writes it once.
I want to rebuild the main header menu on this site. The new structure:
[Home (/), Services (/services/) with Web design (/services/web-design/)and Hosting (/services/hosting/) under it, Blog (/blog/), Contact (/contact/)]
First check with get-active-theme that this is a block theme; if it is not,stop and tell me to use the classic menu tools. List the navigation menus withlist-navigations and show me each one's title, id and link tree, plus anythingunder other_blocks. Ask me which one is the header menu.
Check every internal link in my structure against the published pages withget-pages and flag any that do not match. Then show me the current tree besidethe new one, and list what the replace will drop: other_blocks, and per-linksettings such as open in a new tab. Wait for my go. Then send the full tree inone update-navigation call, read it back with list-navigations, and keep theold tree in your reply.Why this is safe to run
Everything before the write is a read. You see the current tree, the blocks the replace would remove, and every link checked against a published page, before you approve.
The write is bounded. It takes a label and a URL per item, nested up to three levels and 100 items in all, and an empty list is refused. A URL must be an http, https, mailto or tel link, a path starting with /, or an anchor starting with #; anything else is refused. A navigation owned by a page builder is refused too.
Update navigation is a replace, so the old tree from the first read is your copy. It is off by default, needs the edit-theme-options capability, runs as the user you bound the agent to, and lands in the Activity Log.
For classic menus on a classic theme, use manage and rebuild navigation menus instead.
Already connected? Ask your agent for the “rebuild a block-theme navigation menu” recipe, describe the links you want, and it runs the same read-first flow on your own site.