Check an edited .docx against its original
compareChecks an edited .docx or .pptx against the original to find lost comments, tracked changes, notes, headers/footers, and text, and to honor declared expected changes.
Instructions
Everything check does on the edited file, plus what the edit lost relative to the original: comments, tracked insertions and deletions, footnotes and endnotes, headers and footers, text. Same as ooxml-integrity check EDITED --against SOURCE --json --coverage. For a .pptx only the layout checks run and the comparison is reported as not performed (FID000). If the user asked for a change that removes something, such as accepting or rejecting a tracked change or rewriting a header untracked, declare it in expect: a matching finding is reported as expected instead of failing, and an expectation nothing matches fails with EXP001.
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": {
"source": "<source>",
"edited": "<edited>"
},
"name": "compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edited | Yes | the edited copy; path on this machine; absolute, or relative to the server's working directory. URLs are rejected | |
| expect | No | changes the edit was asked to make, as [[expect]] entries in docs/configuration.md, without path | |
| source | Yes | the original document; path on this machine; absolute, or relative to the server's working directory. URLs are rejected | |
| introduced | No | true reports only what the edit introduced: a finding the original already has, such as a comment an earlier tool orphaned, is listed as suppressed instead of failing. Lost content (FID) and anything not checked always count. Default false |