Update Page


Edits the title, content and/or excerpt of an existing page, including pages authored by other users. Requires edit rights on that specific page, so a contributor still cannot edit a published page. Replaces the fields you pass and leaves the rest untouched; the page keeps its current status. If the post is built with Elementor, what visitors read comes from the Elementor layout rather than from this content, so change the text on the Elementor elements instead. This replaces a whole field with the text you supply. To change only part of the text, use mosmcp/content-replace-in-post instead: it is far cheaper on a long page and cannot lose formatting, shortcodes or block markup the way rewriting the whole field can.

Property Value
Ability slug mosmcp/page-update
Wire tool name mosmcp__page-update
Category Pages (mosmcp-pages)
Plan Free

 

Required access

Requirement Value
Capability edit_page (checked against the specific page)
Minimum default role Editor
Annotations readOnly: false · destructive: false · idempotent: true · openWorld: true

 

Input schema

Field Type Required Default Description
id integer (min 1) Yes — The ID of the page to update.
title string — New title for the page. Omit to keep the current title.
content string — New content for the page. Omit to keep the current content. HTML is saved the way the WordPress editor saves it: a user with the unfiltered_html capability can save any markup, including forms, scripts and styles, and markup a user is not allowed to save is refused with the reason rather than silently removed. Backslashes are kept. On sites that use the block editor, write it as block markup, the format the editor saves (for example <!-- wp:heading --><h2 class="wp-block-heading">Title</h2><!-- /wp:heading --> then <!-- wp:paragraph --><p>Text</p><!-- /wp:paragraph -->), so each heading, paragraph or button can be edited on its own later. Plain HTML is saved as one "Classic" block. For a new page it is often simplest to create it with a title only and add the content with mosmcp/block-insert, which builds the blocks for you.
excerpt string — New excerpt for the page. Omit to keep the current excerpt; pass an empty string to clear it.
slug string — New URL slug. Omit to leave the address unchanged. Reduced to a URL-safe form, and a suffix is added if it is already taken.

 

Output schema

Field Type Required Description
id integer Yes
title string Yes
status string Yes
slug string The URL slug as stored, which may differ from a requested one.
updated string[] Fields that were changed.
warnings object[] Notes about the update, such as the content not being visible because Elementor renders this post.
warnings[].code string
warnings[].message string
warnings[].context string
modified string
edit_url string
view_url string
post_type string

 

Example

Sample prompt
Change the title of the About page to 'About Our Company'.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 56,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__page-update",
    "arguments": {
      "input": {
        "id": 42,
        "title": "About Our Company"
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 56,
  "result": {
    "isError": false,
    "structuredContent": {
      "id": 42,
      "title": "About Our Company",
      "status": "publish",
      "slug": "about",
      "updated": [
        "title"
      ],
      "warnings": [],
      "modified": "2026-09-29 10:15:02",
      "edit_url": "https://example.com/wp-admin/post.php?post=42&action=edit",
      "view_url": "https://example.com/about/",
      "post_type": "page"
    }
  }
}

 

Edge cases / errors

  • No title, content, excerpt or slug supplied (or only a blank title) → refused with nothing_to_update.
  • id is not a page → page_not_found; lacking edit rights on that specific page (e.g. a contributor and a published page) → permission denied.
  • content changed on an Elementor-built page → saved, but a content_hidden_by_elementor warning says visitors will still see the Elementor layout.
  • Changing the slug of a published page → a published_url_changed_no_redirect warning, because WordPress keeps no old-address redirect for pages; a taken slug gets a suffix and a slug_adjusted_for_uniqueness warning.

 


<< Previous Next >>
Update Own Page Create Category

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.