wp_bulk_find_replace
Find and replace exact text within WordPress post content. Preview changes with a dry run, then apply using the returned confirmation token.
Instructions
Find and replace a literal substring across post content. Requires MODE=full. Dry-run by default (returns count + sample of changes). To apply, set dry_run=false and provide the confirm token returned by the dry-run. Operates on rendered post_content only; does not touch titles, excerpts, or meta.
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": {
"find": "<find>",
"replace": "<replace>"
},
"name": "wp_bulk_find_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| status | No | publish | |
| confirm | No | ||
| dry_run | No | ||
| replace | Yes | ||
| per_page | No |