preview_replace
Preview search-and-replace effects on a Word document without modifying it. See per-item match counts, paragraph context, grand total, and refusals before committing to the actual edit.
Instructions
Dry-run search_and_replace; the file is NEVER modified. Same items ({find, replace, regex?}), scope (body | footnotes | headers | all), and matching engine (fragmented-run map, guarded regex, chained items), so the preview shows exactly what a real run would change: per-item counts, each match with paragraph index and ~60 chars of before/after context, the grand total, and the refusals a real run would hit. Review, then run search_and_replace with max_replacements set to the previewed total so any drift aborts instead of over-replacing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | body | |
| file_path | Yes | ||
| replacements | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||