HALOWERK: Compares two versions of a document — PDF, DOCX, ODT, HTML, Markdown or plain te
doc_diffCompare two versions of a document (PDF, DOCX, ODT, HTML, Markdown, or text) and get a diff of removed, added, and reworded paragraphs, with word-level changes and a symmetric similarity score.
Instructions
Compares two versions of a document — PDF, DOCX, ODT, HTML, Markdown or plain text — and returns which paragraphs were removed, added or reworded, with a word-level diff inside every reworded paragraph and a symmetric similarity score.
Kostenpflichtig: 0.002 USDC je Aufruf. Bezahlt per x402 auf Base, ohne Konto. Hoechstens 0.002 USDC je Aufruf.
Takes two documents, by URL, inline base64 or raw text, extracts the text of each and compares them. Paragraphs are the unit: the answer lists every block that was removed, added, or kept but reworded, and for reworded blocks it names the individual words that went and came, so a single changed number in a long clause is visible instead of the whole clause being flagged. Alongside the content diff a structural comparison reports headings, paragraph, list and table-line counts on both sides. The similarity score is deliberately symmetric — two times the shared words divided by the sum of both lengths — because a one-sided measure would rate a heavily shortened document as almost unchanged. Both sides are measured the same way over the same units; if the two inputs arrive in different formats, so that one text comes out of a PDF and the other out of a DOCX, that is reported as a caveat, because part of any structural difference then comes from the extraction path and not from the documents. Ordering and duplicate paragraphs are handled by a shortest-edit-script diff, not by set comparison. What this endpoint does not do is judge: it says what changed, never whether the change is favourable, material or lawful. Preis 0.002 USDC je Aufruf, Abrechnung über x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | The earlier version. Exactly one of url, content_base64 or text. | |
| b | Yes | The later version. Same shape as a. | |
| ignore_case | No | Compare case-insensitively. | |
| block_char_limit | No | Longer block texts are shortened in the answer; the diff itself always runs on the full text. | |
| ignore_whitespace | No | Treat runs of spaces and tabs as one space before comparing. | |
| include_unchanged | No | Also list the unchanged blocks. Off by default — the changes are the answer. | |
| max_blocks_returned | No | Ceiling on returned blocks. What is dropped is counted and reported, never silently cut. |