royal-mcp__wp_replace_in_page
Find/replace a literal string inside a page's content without resending the full body. Page-typed variant of wp_replace_in_post — same semantics: case-sensitive literal match, all occurrences replaced, dry_run preview, expected_count guard, read-after-write verification, undo token for the earlier content. (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>",
"find": "<find>",
"replace": "<replace>"
},
"name": "royal-mcp__wp_replace_in_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| find | Yes | Literal text to find in the page content (case-sensitive, no regex). | |
| dry_run | No | Report the occurrence count without writing. Default false. | |
| replace | Yes | Literal replacement text. Empty string deletes the matched text. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| expected_count | No | Optional guard: abort without writing unless the number of occurrences equals this value. |