mediawiki_bulk_replace
Update text across multiple MediaWiki pages simultaneously using find and replace. Preview changes before applying to ensure accuracy.
Instructions
Update text across MULTIPLE pages at once.
USE WHEN: User says "update everywhere", "fix on all pages", "change brand name across docs", "update in all documentation".
NOT FOR: Single page changes (use mediawiki_find_replace - more efficient).
PARAMETERS:
find: Text to find (required)
replace: Replacement text (required)
pages: Array of specific pages (optional)
category: Update all pages in category (optional)
use_regex: Treat find as regex (default false)
preview: Preview changes (ALWAYS use true first!)
limit: Max pages to update (default 50)
summary: Edit summary
WARNING: Always use preview=true first to verify matches before applying.
RETURNS: Changes per page. Set preview=false to apply all changes. Includes revision ID, diff URL, and undo instructions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rationale | Yes | Required one-sentence explanation of why you are making this change. Stored in the audit log for post-hoc intent reconstruction. | |
| pages | No | Page titles to process | |
| category | No | Category to get pages from (alternative to pages) | |
| find | Yes | Text to find | |
| 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. | |
| preview | No | Preview changes without saving | |
| summary | No | Edit summary | |
| limit | No | Max pages to process (default 10, max 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages_processed | Yes | ||
| pages_modified | Yes | ||
| total_changes | Yes | ||
| preview | Yes | ||
| results | Yes | ||
| message | Yes |