compare-pages
Returns a compact text diff between two wiki page versions specified by revision ID, title, or supplied wikitext, with an option to skip diff rendering for change detection.
Instructions
Returns the changes between two versions of a wiki page as a compact text diff. Each side accepts a revision ID, page title (latest revision), or supplied wikitext; text-vs-text is rejected. Only the changes are returned over the wire. For the full text of both sides, fetch with get-page instead. If a title or revision ID does not exist, an error is returned. Set includeDiff=false for a cheap change-detection response that skips diff rendering and returns just the change flag, revision metadata, and size delta. Diff output is truncated at 75000 bytes by default, with a marker reporting how much of it was returned; a narrower revision range or includeDiff=false avoids truncation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wiki | No | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. | |
| toText | No | Supplied wikitext for the "to" side | |
| toTitle | No | Wiki page title for the "to" side (latest revision is used) | |
| fromText | No | Supplied wikitext for the "from" side | |
| fromTitle | No | Wiki page title for the "from" side (latest revision is used) | |
| toRevision | No | Revision ID for the "to" side | |
| includeDiff | No | Include the diff body (default true). Set false for a cheap change-detection response. | |
| fromRevision | No | Revision ID for the "from" side |