compare_documents
Compare two Word documents to detect text changes in paragraphs and table cells, then get a tracked-change plan with diagnostics to preview and apply to the original.
Instructions
Read two Word documents and return paragraph differences, exact input SHA-256 hashes, coverage diagnostics, and a tracked-change plan bound to the original snapshot. Covered: text added, removed or changed in free body paragraphs, and text changed inside a table cell when the table's geometry is unchanged. The same words split differently across equally formatted runs are not a difference, because Word re-segments runs constantly. Refused, with a per-area diagnostic and no plan: changed table geometry, a cell whose formatting changed along with its words, paragraph formatting or style changes, and changes in headers, footers, notes, images, numbering or other parts. Differences found in the areas that are covered are still reported when another area blocks the plan, so a refusal tells you what it saw. Unsupported changes make isComplete false and plan null. This tool writes nothing; preview and apply the returned plan against the original document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revisionAuthor | Yes | OfficeAgent Compare | |
| revisedDocumentId | Yes | ||
| originalDocumentId | Yes | ||
| revisedConnectionId | Yes | ||
| originalConnectionId | Yes |