{"uid":"cap_-PTUEe58MgNi5-ys2tnAR","slug":"opentools-text-diff-588a0d35","name":"OpenTools Text Diff","description":"opentools utility endpoint","url":"https://chargers-borders-cedar-fig.trycloudflare.com/tools/text-diff","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"unprobed","priceSource":"registry","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":"unknown","summary":"price unknown","primary":{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_yUQ3Cx8WVWgoavAS93qo6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7c32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a text diff between two text inputs, returning the differences between them","exampleAgentPrompt":"Can you diff these two paragraphs and show me exactly what changed — here's the original: 'The quick brown fox jumps over the lazy dog.' and the new version: 'The quick red fox leaped over the sleepy dog.'","exampleUseCases":[{"title":"Reviewing edited document drafts","prompt":"I have two versions of a contract paragraph — the original and the revised one. Can you compare them and tell me exactly what words or sentences were added, removed, or changed?"},{"title":"Code review change detection","prompt":"Here's a snippet of code before and after my teammate edited it. Can you diff them and highlight every line that was modified?"},{"title":"Checking blog post revisions","prompt":"My editor sent back my article with changes but didn't track them. Can you compare my original draft to their version and list what's different?"}],"resultDescription":"Returns a structured diff result indicating lines or segments that were added, removed, or unchanged between the two input texts, typically in a standard diff format or structured JSON representation of changes.","failureModes":["Missing required input body — returns 400 if text fields are absent","Malformed JSON body — returns 400 or 422 validation error","Extremely large text inputs may time out or return an error","Empty strings provided for both texts — may return empty diff or error","Server unavailable on Cloudflare tunnel — returns 502 or 503"],"whenToPreferThis":"Use this endpoint when you need a lightweight, free text diff computation without setting up a local diff library. It is well-suited for agents that need to programmatically compare two strings or documents and surface changes, especially in workflows involving document editing, version tracking, or review automation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:41:29.051Z","isFirstParty":false}