{"uid":"cap_51zFJFVpJNwnFGEF3bRs_","slug":"agentshelf-words-diff-ce845c3f","name":"AgentShelf Words Diff","description":"Call when an agent needs a words diff of two strings. No network. Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/diff-words first.","url":"https://agentshelf.syntexa.ch/v1/diff-words?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","examples":["one two"],"maxLength":100000,"description":"Left-hand text."},"b":{"type":"string","examples":["one three"],"maxLength":100000,"description":"Right-hand text."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_H3jj-jzs3XvgQCKWaB1kr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a word-level diff between two input strings and returns the differences, with no network dependencies.","exampleAgentPrompt":"Can you show me exactly which words changed between these two strings: 'The quick brown fox jumps over the lazy dog' and 'The fast brown fox leaps over the sleepy dog'?","exampleUseCases":[{"title":"Detect edits in revised document","prompt":"I have two versions of a paragraph — the original and the edited one. Can you do a word-by-word diff so I can see exactly which words were added, removed, or changed?"},{"title":"Compare chatbot response versions","prompt":"My chatbot gave two different responses to the same question. Compare them word by word so I can see what changed between the first and second version."},{"title":"Proofread legal clause changes","prompt":"Here are two versions of a contract clause. Can you diff them at the word level so I can quickly spot every word that was altered?"}],"resultDescription":"A word-level diff result showing which words were added, removed, or unchanged between the two input strings, computed locally with no external network calls.","failureModes":["Input strings exceeding 100,000 characters may be rejected","Missing 'a' or 'b' fields returns a validation error","Payment of exactly $0.01 USDC required; incorrect payment amount causes rejection","Malformed JSON body returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need a precise word-level diff (as opposed to line-level or character-level) between two strings, and want a deterministic, offline computation at a fixed low cost of $0.01 USDC. Prefer this over the free sandbox endpoint (/v1/sandbox/diff-words) only when the sandbox is unavailable or unsuitable. Use the lines diff or unified diff siblings if line-level or unified patch format output is needed instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:08.001Z","isFirstParty":false,"canonicalSlug":"agentshelf-words-diff-ce845c3f"}