Compare two versions
diff_page_versionsCompare two versions of a Wiki.js page as a unified diff, or compare a version against the live page. Get a clear view of changes in one call.
Instructions
Returns a unified diff between two versions of a page — or between one version and the page as it is now, if to_version is omitted. Answers "what changed here" in one call instead of two full page bodies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Numeric Wiki.js id. | |
| to_version | No | The newer version id. Omit to compare against the live page. | |
| from_version | Yes | The older version id, from list_page_history. | |
| context_lines | No | Unchanged lines shown around each change (default 3). |