Compare two documents
compare_documentsCompare two Word documents to return paragraph differences, SHA-256 hashes, coverage diagnostics, and a tracked-change plan tied to the original snapshot; writes nothing.
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.
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": {
"originalConnectionId": "<originalConnectionId>",
"originalDocumentId": "<originalDocumentId>",
"revisedConnectionId": "<revisedConnectionId>",
"revisedDocumentId": "<revisedDocumentId>",
"revisionAuthor": "<revisionAuthor>"
},
"name": "compare_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revisionAuthor | Yes | OfficeAgent Compare | |
| revisedDocumentId | Yes | ||
| originalDocumentId | Yes | ||
| revisedConnectionId | Yes | ||
| originalConnectionId | Yes |