Inicio - Documentación - POM AI - 23 MCP - Prompt recipes - Recipe: make a bounded edit to an existing page

Recipe: make a bounded edit to an existing page

Use this recipe for a known page ID and a clearly delimited change.

Read page [PAGE ID] including its current content and status. Summarize the
exact block or text that matches [TARGET]. Prepare the smallest change needed
to achieve [OUTCOME], preserving all unrelated content, status, slug, parent,
template, shortcode IDs, and classes. If the page uses POM builder shortcodes,
read authoring context and validate the complete proposed content. Show a
before/after excerpt and wp_update_page dry-run. Wait for confirmation, apply
once, then read the page back and verify the target changed and unrelated
sections remain.

Do not identify a page by title alone when several matches exist. The update tools preserve the current publication status when status is omitted, but the prompt still asks the client to inspect and report it so an accidental status change is visible.

For POM builder content, a string replacement can unbalance nested shortcodes. Use the dedicated structure-preserving server prompt for layout work. For plain content, keep the diff small and retain intentional HTML.

Related guides: read a page, update a page, and structure-preserving update.