validate_conversion
Compare a source document with its converted version to check text, numeric, identifier, and structural fidelity, and return a report of mismatches and unsupported checks.
Instructions
Given a source document and a converted one (made by anything), run every check that is possible for the format pair and return the validation report: text, numeric and identifier fidelity, structure, and every property NOT_CHECKED or UNSUPPORTED. Writes nothing unless report_path is set. [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 |
| overwrite | No | ||
| report_path | No | ||
| source_path | Yes | Absolute file path. | |
| target_path | Yes | Absolute file path. | |
| max_differences | No | Differences kept in the full report; the rest are counted. | |
| source_encoding | No | Text encoding of a .md/.txt input. Omit for UTF-8; docbridge never guesses. | |
| target_encoding | No | Text encoding of a .md/.txt input. Omit for UTF-8; docbridge never guesses. |
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. |