Inicio - Documentación - POM AI - 23 MCP - Prompt recipes - Server prompt: update a POM builder page without flattening it

Server prompt: update a POM builder page without flattening it

Request update_pom_builder_page_preserving_structure with the required page_id argument.

{
  "name": "update_pom_builder_page_preserving_structure",
  "arguments": {
    "page_id": "123"
  }
}

The returned instruction makes the client read the page and its exact authoring context before editing. It must preserve the shortcode hierarchy, merge tags, IDs, classes, and unrelated sections; prefer documented shortcode attributes over new CSS; validate the entire proposed content; and update only after validation.

Add the bounded change in a separate message:

On page 123, change only the introductory call-to-action label and destination.
Preserve every other section, shortcode ID, class, spacing value, and status.
Show the exact before/after fragment and a dry-run before applying.

Validation needs the whole page because a fragment can be balanced while its insertion breaks a parent container. After the write, read the page back and compare the target fragment plus surrounding structure. The update should not silently move a published page to draft when status is omitted, but the client should still report the retained status.

Related guides: POM builder resource, builder validator, and page update tool.