Wordpress Edit Post
wordpress_edit_postEdit an existing WordPress post by replacing exact source text without resending the post; optional version checks prevent overwriting newer changes.
Instructions
Replace text in a WordPress post's source, without resending the post.
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": {
"post_id": "<post_id>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "wordpress_edit_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Post ID | |
| new_text | Yes | Replacement text | |
| old_text | Yes | Exact text from get_post'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 post is still at this version (get_post) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||