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.
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": {
"path_a": "<path_a>",
"path_b": "<path_b>"
},
"name": "compare_documents"
}
}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 | |||