compare_documents
Compare two Word documents and get a paragraph-level diff: additions, removals, and changes with indices.
Instructions
Compare two Word (.docx) documents and report paragraph-level differences: additions, removals, and changes with paragraph indices. Note: comparison and snapshots are ONLY supported for Word (.docx); Excel (.xlsx) and PowerPoint (.pptx) comparison is not yet available (you will receive an UNSUPPORTED_FORMAT error). Also manages document snapshots via options.action: "snapshot" records path_a state, "list_snapshots" lists recorded snapshots, and "restore" writes a snapshot back to path_b (snapshot store default: ~/.tianshang-scribe/snapshots/). The compare mode never modifies its inputs; snapshot/restore write to the snapshot store. To read a single document, use extract_document_data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path_a | Yes | Path to the first document. | |
| path_b | Yes | Path to the second document. | |
| options | No | Tool options. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||