mediawiki_edit_page
Create new pages or replace entire page content with wikitext. Supports editing specific sections and requires authentication.
Instructions
Create new pages or rewrite entire page content.
USE WHEN: User says "create a new page", "rewrite the entire About page", "replace all content".
NOT FOR: Simple text changes (use mediawiki_find_replace). Not for formatting (use mediawiki_apply_formatting).
PARAMETERS:
title: Page name (required)
content: New page content (required)
section: Edit specific section only (optional)
summary: Edit summary (required for good practice)
minor: Mark as minor edit (default false)
bot: Mark as bot edit (default false)
RETURNS: Includes revision ID, diff URL, and undo instructions.
NOTE: Requires authentication (bot password). Anonymous sessions cannot edit.
WARNING: This overwrites entire page content unless section is specified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Mark as bot edit (requires bot flag) | |
| minor | No | Mark as minor edit | |
| title | Yes | Page title to edit or create | |
| content | Yes | New page content in wikitext format | |
| section | No | Section to edit ('new' for new section, number for existing) | |
| summary | No | Edit summary explaining the change | |
| rationale | Yes | Required one-sentence explanation of why you are making this change. Stored in the audit log for post-hoc intent reconstruction. | |
| captcha_id | No | CAPTCHA ID from a previous failed attempt, required when answering a CAPTCHA | |
| captcha_word | No | User-provided answer to the CAPTCHA challenge |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| message | Yes | ||
| page_id | Yes | ||
| success | Yes | ||
| new_page | Yes | ||
| page_url | No | ||
| captcha_id | No | ||
| revision_id | Yes | ||
| captcha_type | No | ||
| captcha_question | No |