Update Page is a WordPress ability from Page Builder: Pagelayer – Drag and Drop website builder — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Update Page

Write

Update a page's title, status, or entire layout tree — replacing the whole pagelayer_data destroys any human edits made since.

Requires the Pagelayer plugin on WordPress 6.9+ (or another source of wp_register_ability()) for the Abilities API — registration is skipped entirely via a function_exists() guard when it isn't available, and ability categories similarly require wp_register_ability_category(). Most abilities require the 'edit_posts' capability; update-global-styles, create-menu, and delete-menu require 'manage_options'. search-images additionally needs a Pexels API key configured on the Pagelayer AI Agents settings page, and get-library-sections/import-library-section call Pagelayer's own hosted library API. Four near-duplicate abilities (get-widget, get-widgets-summary, edit-layout, navigator) are registered in source with mcp_public:false — fully callable over the REST Abilities API but intentionally left out of the advertised MCP tool list as duplicates of get-widget-schema, list-widgets, update-page, and get-page respectively — and are excluded from this listing.

What it does

Updates the post title and/or status directly, and when pagelayer_data is supplied it REPLACES the page's entire layout, through the same inline-CSS and content-quality gates as create-page, discarding any edits made in the visual editor since the last save. For a smaller, non-destructive change, update-element, add-element, or change-styles are the cheaper, safer alternative that only touch part of the tree.

See it in action

You ask your AI assistant

"Update page 128's title to "Our Services" and republish it."

Inputs

Name Type Required Description
post_id integer Yes Page post ID.
title string No New title.
pagelayer_data object No Full replacement layout node tree.
status string No New post status.
skip_validation boolean No Bypass the content-quality gate for an intentional unfinished draft. Not recommended.

Returns

An object with success:true, post_id, and url, or a WP_Error if the page isn't found or a gate rejects the new layout.

Permission

Requires the 'edit_posts' capability.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.