mediawiki_compare_revisions
Compare two revisions of a wiki page and view the differences highlighted in an HTML diff. See additions in green and deletions in red to understand what changed.
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 |
|---|---|---|---|
| to_rev | No | Target revision ID | |
| from_rev | No | Source revision ID | |
| to_title | No | Target page title (uses latest revision) | |
| rationale | No | Optional one-sentence explanation of why you are calling this tool. Used for audit trails when present. | |
| from_title | No | Source page title (uses latest revision) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | ||
| to_user | No | ||
| to_revid | Yes | ||
| to_title | Yes | ||
| from_user | No | ||
| from_revid | Yes | ||
| from_title | Yes | ||
| to_timestamp | No | ||
| from_timestamp | No |