mediawiki_compare_revisions
Compare two MediaWiki page revisions to view changes between versions. Shows HTML-formatted diffs with additions and deletions highlighted.
Instructions
Compare two revisions and show the diff.
USE WHEN: User asks "what changed between versions", "show the diff", "compare old and new".
NOT FOR: Just listing revisions (use mediawiki_get_revisions). Not for comparing a topic across pages (use mediawiki_compare_topic).
PARAMETERS:
from_rev: Source revision ID, OR
from_title: Source page title (uses latest revision)
to_rev: Target revision ID, OR
to_title: Target page title
RETURNS: HTML-formatted diff showing additions (green) and deletions (red).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_rev | No | Source revision ID | |
| to_rev | No | Target revision ID | |
| from_title | No | Source page title (uses latest revision) | |
| to_title | No | Target page title (uses latest revision) |