document_compare
Compare two PDF, DOCX, MD, or TXT documents to identify missing, added, changed, or incomparable text, numbers, identifiers, structure, and page-count differences. Read-only.
Instructions
Compare two documents (any of PDF, DOCX, MD, TXT) through their canonical forms: missing, added and changed text, numbers and identifiers, structure and page-count differences, and what could not be compared. Read-only. [docbridge schema 0.2.4]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | summary: report_summary + report_id (get_report has the rest). full: the whole report inline. | summary |
| left_path | Yes | Absolute file path. | |
| right_path | Yes | Absolute file path. | |
| left_encoding | No | Text encoding of a .md/.txt input. Omit for UTF-8; docbridge never guesses. | |
| right_encoding | No | Text encoding of a .md/.txt input. Omit for UTF-8; docbridge never guesses. | |
| max_differences | No | Differences kept in the full report; the rest are counted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| error | No | ||
| report | No | The full report. Over MCP only with detail='full'. | |
| outputs | No | ||
| report_id | No | Pass to get_report for the full report (held for this server session). | |
| disclaimer | No | docbridge never alters, summarizes or silently truncates source evidence. docbridge reports what it compared. PASS on an axis covers only that axis's stated scope; NOT_CHECKED and UNSUPPORTED are never passes. PDF text is the text layer as PyMuPDF decodes it, not the rendered glyphs. Nothing here interprets meaning: numbers are compared as characters, not as values. | |
| report_path | No | ||
| report_summary | No | ||
| schema_version | Yes | ||
| conversion_notes | No | ||
| operation_completed | Yes | The operation ran and wrote its outputs. Says NOTHING about fidelity: read the report status. |