royal-mcp__wp_update_block_template
Replace the block markup of a Site Editor template or template part on a block theme (ids from wp_list_block_templates, e.g. "twentytwentyfive//single"; type wp_template_part for parts). A template that comes from the theme's file is saved as a customised copy, as the Site Editor does; the file is not touched. Saved through WordPress's own templates endpoint. Copy the current markup from wp_get_block_template as a model. dry_run checks the markup without saving. Requires edit_theme_options. Returns an undo token: undo puts the earlier markup back, or removes the customisation when there was none; it refuses when the template was changed again since, unless force. (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>",
"markup": "<markup>"
},
"name": "royal-mcp__wp_update_block_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Template id, e.g. "twentytwentyfive//single". | |
| type | No | Default wp_template. | |
| markup | Yes | The full new block markup of the template. | |
| dry_run | No | ||
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) |