{"uid":"cap_LWoP7QE7j_Ignh-bij9V5","slug":"medien-halowerk-com-document-diff-a500bfcd","name":"medien.halowerk.com Document Diff","description":"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.","url":"https://medien.halowerk.com/v1/doc-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"text":{"type":"string","maxLength":400000},"format":{"enum":["auto","pdf","docx","odt","epub","html","markdown","rst","org","latex","rtf","csv","tsv","text"],"type":"string","default":"auto"},"filename":{"type":"string","maxLength":260},"content_base64":{"type":"string","maxLength":12000000}},"description":"The earlier version. Exactly one of url, content_base64 or text.","additionalProperties":false},"b":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"text":{"type":"string","maxLength":400000},"format":{"enum":["auto","pdf","docx","odt","epub","html","markdown","rst","org","latex","rtf","csv","tsv","text"],"type":"string","default":"auto"},"filename":{"type":"string","maxLength":260},"content_base64":{"type":"string","maxLength":12000000}},"description":"The later version. Same shape as a.","additionalProperties":false},"ignore_case":{"type":"boolean","default":false,"description":"Compare case-insensitively."},"block_char_limit":{"type":"integer","default":1200,"maximum":8000,"minimum":80,"description":"Longer block texts are shortened in the answer; the diff itself always runs on the full text."},"ignore_whitespace":{"type":"boolean","default":true,"description":"Treat runs of spaces and tabs as one space before comparing."},"include_unchanged":{"type":"boolean","default":false,"description":"Also list the unchanged blocks. Off by default — the changes are the answer."},"max_blocks_returned":{"type":"integer","default":300,"maximum":2000,"minimum":10,"description":"Ceiling on returned blocks. What is dropped is counted and reported, never silently cut."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1zicl0TRZj9nGmgFFdC67","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two documents paragraph-by-paragraph, identifying added, removed, and reworded blocks with word-level change highlighting plus structural metadata counts.","exampleAgentPrompt":"Compare these two contract drafts for me — here's the original URL and the revised URL — and show me exactly which paragraphs changed, what words were added or removed in each, and how the heading and table counts differ between them.","exampleUseCases":[{"title":"Legal contract revision audit","prompt":"I have two versions of a vendor contract — the original is at https://docs.example.com/contract-v1.pdf and the revised one is at https://docs.example.com/contract-v2.pdf. Compare them and tell me every paragraph that was added, removed, or reworded, and flag any individual word changes so I don't miss a changed number or date."},{"title":"Policy document change detection","prompt":"Our compliance team updated the employee handbook. Can you diff the old version (I'll paste the raw text) against the new PDF at https://hr.example.com/handbook-2024.pdf and give me a breakdown of what paragraphs changed, including word-level rewording details and a count of how many headings and lists each version has?"},{"title":"Comparing two report drafts before publishing","prompt":"Before we publish, I need to know what changed between our Q3 draft report and the final version — both are inline base64. Show me which blocks were added or cut, highlight any reworded sentences with the specific words that came and went, and give me the structural summary so I can see if any sections were added."}],"resultDescription":"A structured diff listing every paragraph block as removed, added, or reworded; for reworded blocks, the specific words that were deleted and inserted are named individually. Additionally, a structural comparison provides heading, paragraph, list, and table-line counts for both input documents side by side.","failureModes":["Unsupported document format or corrupt file returns an error","URL-fetched document is inaccessible or returns non-200 status","Base64 payload is malformed or truncated","Documents are identical — returns empty diff with matching structural counts","Very large documents may time out or hit size limits","Language or encoding issues may affect text extraction accuracy"],"whenToPreferThis":"Choose this endpoint when you need granular, word-level diff analysis between two documents rather than just a high-level summary of changes. It is especially valuable for legal, compliance, or editorial workflows where a single changed number or word matters. Unlike generic file comparison tools, it works on multiple input formats (URL, base64, raw text), operates at the paragraph level for readable diffs, and also reports structural metadata counts for both sides.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:42:40.631Z","isFirstParty":false}