mediawiki_find_replace
Replace specific text on a single MediaWiki page. Use to fix typos, update names, or change version numbers with optional regex support and preview mode.
Instructions
PREFERRED for simple text changes on a single page.
USE WHEN: User says "replace X with Y", "fix the typo", "change the version number", "update the name".
NOT FOR: Creating/rewriting pages (use mediawiki_edit_page). Not for multi-page updates (use mediawiki_bulk_replace). Not for formatting (use mediawiki_apply_formatting).
PARAMETERS:
title: Page name (required)
find: Text to find (required)
replace: Replacement text (required)
all: Replace all occurrences (default false = first only)
use_regex: Treat find as regex (default false)
preview: Preview changes without saving (default true for safety)
summary: Edit summary
RETURNS: Match count and preview of changes. Set preview=false to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Page title to edit | |
| find | Yes | Text to find (exact match or regex if use_regex=true) | |
| replace | Yes | Replacement text | |
| use_regex | No | Treat 'find' as a Go RE2 regex. Characters like . [ ] * + ? ( ) have special meaning; escape with backslash for literal match. Max 500 chars. | |
| all | No | Replace all occurrences (default: first only) | |
| preview | No | Preview changes without saving | |
| summary | No | Edit summary | |
| minor | No | Mark as minor edit |