mediawiki_edit_page
Create or rewrite entire wiki page content. Specify a section to edit only part of the page; otherwise, the full content is replaced.
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.
WARNING: This overwrites entire page content unless section is specified.
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. | |
| title | Yes | Page title to edit or create | |
| content | Yes | New page content in wikitext format | |
| summary | No | Edit summary explaining the change | |
| minor | No | Mark as minor edit | |
| bot | No | Mark as bot edit (requires bot flag) | |
| section | No | Section to edit ('new' for new section, number for existing) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| title | Yes | ||
| page_id | Yes | ||
| revision_id | Yes | ||
| new_page | Yes | ||
| message | Yes |