diff_docx_files
Compare two DOCX files and generate a text-based Unified Diff to identify changes between versions. Optionally compare the accepted final state or raw text with tracked changes.
Instructions
Compares two DOCX files and generates a text-based Unified Diff. Use this to see exactly what changed between two versions of a document. By default (compare_clean=True), it compares the 'Accepted' finalized states of both documents. Set compare_clean=False if you need to compare the raw underlying text including Tracked Change CriticMarkup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original_path | Yes | Path to the base document. | |
| modified_path | Yes | Path to the new document. | |
| compare_clean | No | If True, compares 'Accepted' state. If False, compares raw text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |