diff_to_text
Compare two DOCX files and generate a redlined document with a plain-text summary of changes, suitable for email or pull request descriptions.
Instructions
Compare two separate DOCX files and produce a tracked-change DOCX plus a plain-text summary.
Use this when you have two distinct files (e.g. an original and a revised copy) and want to show what changed between them. Produces:
A DOCX with tracked-change markup (deletions in red, insertions underlined).
A .txt summary suitable for pasting into an email or pull-request description.
If you have already made tracked edits to the currently open document and just want to summarise those changes, use generate_change_summary instead.
Args: base_path: Path to the original DOCX. revised_path: Path to the revised DOCX. docx_output: Output path for the tracked-change DOCX (auto-generated if empty). text_output: Output path for the plain-text summary .txt (auto-generated if empty).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_path | Yes | ||
| revised_path | Yes | ||
| docx_output | No | ||
| text_output | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |