Wordpress Edit Draft
wordpress_edit_draftReplace exact text in a draft or pending WordPress post's source; refuses published or other statuses.
Instructions
Replace text in a draft or pending WordPress post's source. Refuses any other status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Post ID of a draft or pending post | |
| 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 | |||