diff_to_text
Compare two DOCX files to produce a marked-up document with tracked changes and a plain-text summary of differences.
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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base_path": "<base_path>",
"revised_path": "<revised_path>"
},
"name": "diff_to_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_path | Yes | ||
| docx_output | No | ||
| text_output | No | ||
| revised_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |