{"uid":"cap_JZdp7n3PzaoxaO9c51yWe","slug":"automata-text-comparator-literal-string-diff-846200e0","name":"Automata Text Comparator — Literal String Diff","description":"Compare two strings literally, with no normalization and no inference: equality, lengths, and the first difference with line, column, Unicode code point and UTF-16 offset. Up to 20,000 UTF-16 units each. Use this when an agent must check that a delivered text matches the agreed text exactly, or locate where two versions diverge. Deterministic JSON. Free sample at /api/comparar-textos/sample.","url":"https://tienda.textokit.store/api/comparar-textos?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"entrega":{"type":"string","maxLength":20000,"description":"Delivered text; handler limit: 20000 UTF-16 units"},"original":{"type":"string","maxLength":20000,"description":"Original text; handler limit: 20000 UTF-16 units"}}},"responseSchema":{"type":"json","example":{"equal":false,"scope":"Compara literalmente las cadenas recibidas, sin normalización ni inferencia. No verifica bytes de archivos, hechos ni aceptación de una entrega.","lengths":{"entrega":{"utf16":3,"codePoints":2},"original":{"utf16":3,"codePoints":2}},"firstDifference":{"line":1,"column":2,"entrega":{"character":"b","codePoint":"U+0062"},"original":{"character":"a","codePoint":"U+0061"},"utf16Offset":2,"codePointIndex":1},"positionConvention":{"lineBase":1,"columnBase":1,"columnUnit":"Unicode code points","lineSeparator":"LF","utf16OffsetBase":0,"codePointIndexBase":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9oHKO24mX6rPOZ_PONWSH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two text strings byte-by-byte and returns whether they are equal, their lengths, and the exact position of the first difference in Unicode code points and UTF-16 offsets.","exampleAgentPrompt":"Compare these two texts character by character and tell me exactly where they first differ — the original is 'Hello world' and the delivered version is 'Hello World'.","exampleUseCases":[{"title":"Submission integrity check for plagiarism","prompt":"I need to verify that the essay a student submitted is byte-for-byte identical to the draft they sent earlier — the original is the draft text and the delivered version is the final submission. Tell me if they match and where the first difference is."},{"title":"Proofreading diff for edited contracts","prompt":"Can you compare my original contract clause with the version the other party returned and pinpoint the exact character, line, and column where they made a change?"},{"title":"Automated pipeline output verification","prompt":"My text-processing pipeline should output exactly the same string it received. Compare the input text and output text and tell me if there's any difference, and if so, at which UTF-16 offset it first appears."}],"resultDescription":"A JSON object indicating whether the two strings are equal ('equal' boolean), the UTF-16 and code-point lengths of each string, and — if they differ — the precise location of the first difference including line number (1-based), column number (1-based, in code points), UTF-16 offset (0-based), the specific character and its Unicode code point in each string, and a note on the scope and limitations of the comparison.","failureModes":["Input string exceeds 20,000 UTF-16 units — request rejected","Malformed JSON body — 400 error","Payment not provided or insufficient USDC — 402 Payment Required","Network or Base blockchain transaction failure — payment not confirmed","Missing 'original' or 'entrega' fields — validation error"],"whenToPreferThis":"Choose this endpoint when you need a literal, character-level comparison of two text strings and need to know the exact position (line, column, UTF-16 offset, code point index) of the first discrepancy. It is ideal for verifying document integrity, checking submission accuracy, or debugging text pipelines where exact byte-level equality matters. It does NOT normalize whitespace, infer semantic equivalence, or check file bytes — use it strictly for raw string comparison up to 20,000 UTF-16 units per string.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T00:36:32.573Z","isFirstParty":false,"canonicalSlug":"automata-text-comparator-literal-string-diff-846200e0"}