update-page
Update an existing wiki page by applying targeted diffs, editing specific sections, appending, prepending, or replacing content while following modern wikitext syntax.
Instructions
Update an existing wiki page. WORKFLOW: First call get-page to read the current wikitext source, then call this tool with your changes.
EDIT MODES (use exactly one): • diff: Preferred for targeted edits. Provide a unified diff (with @@ hunk headers and context lines) — the server fetches current content, applies the patch, and saves. Best for surgical changes to large pages. • section + content: Edit a single section by number (0 = lead section). Only that section is replaced. • append: Add text to the end of the page without reading current content first. • prepend: Add text to the beginning of the page without reading current content first. • content: Full page replacement. Avoid for large pages — use diff instead.
WIKITEXT STYLE GUIDE — when writing or updating wikitext, use modern syntax: • Tables: {| class="wikitable" with |- row separators (not |---- or border="1" or HTML ) • Bold/italic: '''bold''' and ''italic'' (not /) • Headings: == Level 2 == through ====== Level 6 ====== (skip level 1) • Lists: * bullets, # numbered, ; and : for definition lists • Links: [URL description] for external (not bare URLs) • Avoid deprecated tags: , , , , , • Avoid deep colon indentation (::), excessive , inline CSS on divs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Unified diff to apply to the page. Server fetches current content, applies the patch, and submits. Use standard unified diff format with @@ hunk headers. Context lines help match the right location | |
| user | No | Name of the person requesting this edit (for attribution in edit summary). Ask the user if not known | |
| wiki | No | Wiki name (uses default if omitted) | |
| title | Yes | Page title | |
| append | No | Text to append to the end of the page | |
| content | No | Full page content for complete replacement. Avoid for large pages — use diff instead | |
| prepend | No | Text to prepend to the beginning of the page | |
| section | No | Section number to edit (0 = lead section). Use with content to replace only that section | |
| summary | Yes | Edit summary |