Wordpress Edit Page
wordpress_edit_pageEdit WordPress page content by replacing exact source text without resending the page; use replace_all or expected_version to handle repeated text and prevent conflicting edits.
Instructions
Replace text in a WordPress page's source, without resending the page.
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": {
"page_id": "<page_id>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "wordpress_edit_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page ID | |
| new_text | Yes | Replacement text | |
| old_text | Yes | Exact text from get_page's content to replace; must occur exactly once | |
| replace_all | No | Replace every occurrence instead of requiring exactly one | |
| expected_version | No | Refuse the edit unless the page is still at this version (get_page) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||