mediawiki_bulk_replace
Replace text across many wiki pages at once. Specify find and replace strings, target specific pages or entire categories, and preview changes before applying.
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.
NOTE: Requires authentication (bot password) to apply changes. Anonymous sessions cannot edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Text to find | |
| limit | No | Max pages to process (default 10, max 50) | |
| pages | No | Page titles to process | |
| preview | No | Preview changes without saving | |
| replace | Yes | Replacement text | |
| summary | No | Edit summary | |
| category | No | Category to get pages from (alternative to pages) | |
| rationale | Yes | Required one-sentence explanation of why you are making this change. Stored in the audit log for post-hoc intent reconstruction. | |
| use_regex | No | Treat 'find' as a Go RE2 regex. Characters like . [ ] * + ? ( ) have special meaning; escape with backslash for literal match. Max 500 chars. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| preview | Yes | ||
| results | Yes | ||
| total_changes | Yes | ||
| pages_modified | Yes | ||
| pages_processed | Yes |