royal-mcp__wp_update_page
Update existing page. Response includes saved_fields (actual stored values, read back from DB) so silent-drop / silent-modify by WordPress is surfaced rather than hidden. Pass date to reschedule or backdate. The reply carries an undo token that puts back the fields this call changed; a template change has its own token (template_undo_token). A content, title or excerpt that a read shows in part hidden (a key in an embed, a credential in text) is not replaced as a whole (read_is_masked): change the text around it with wp_replace_in_page, whose find text may not touch the hidden part. (site: demo.royalplugins.com) Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "royal-mcp__wp_update_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| date | No | ISO 8601 datetime in the site timezone (e.g. 2026-12-25T09:00:00). Combine with status=future to reschedule, or use alone to backdate. | |
| title | No | ||
| status | No | ||
| content | No | ||
| excerpt | No | Optional page excerpt. May contain safe HTML. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| password | No | Page password. Empty string removes protection. | |
| template | No | Page template: default, or a template filename the theme offers for pages. Anything else is refused and the error lists the valid values. The reply carries template_undo_token, which restores the prior template (only the template). | |
| menu_order | No | Order among sibling pages. Lower = earlier in navigation. | |
| post_author | No | User ID to reassign as page author. | |
| post_parent | No | Parent page ID (0 = top-level). Throws if the ID does not exist. |