Search Replace Execute
search_replace_executeApply approved site-wide search-and-replace changes to all matching content, permanently updating pages and optionally re-publishing them.
Instructions
Execute a site-wide search-and-replace across all content. Modifies every matching page permanently.
MANDATORY workflow:
Run search_replace_preview and show the user which pages will be affected.
Get explicit user confirmation before executing.
Run search_replace_execute with a clear version_comment.
Set auto_republish: true to immediately re-publish all previously-published pages after updating them, collapsing the execute + publish_multiple flow into one call.
For targeted replacements, use scoped_search_replace_execute instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | No | Array of {search, replace, regex} pairs for bulk mode. Applies all replacements in a single pass per page. | |
| regex | No | If true, treat search as regex (single-pair mode) | |
| search | No | Text to search for (single-pair mode) | |
| replace | No | Text to replace with (single-pair mode) | |
| auto_republish | No | If true, re-publish updated pages immediately | |
| version_comment | No | Comment for version history |