Search Replace Preview
search_replace_previewPreview site-wide search-and-replace changes before execution, showing affected pages, total matches, and per-page field breakdown without modifying live content.
Instructions
Preview a site-wide search-and-replace without making any changes. ALWAYS run this before search_replace_execute.
Returns: affected page count, total match count, and per-page field breakdown. Only live pages are searched; fork copies are never matched or rewritten. For targeted replacements (a folder, template, or category), use scoped_search_replace_preview instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | No | Array of {search, replace, regex} pairs for bulk mode. Scans each page once, applying all pairs in order. Much faster than calling preview multiple times. | |
| 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) |