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.
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 | |||