{"uid":"cap__7xtvaxVEtkgqZeiIYn4X","slug":"agentshelf-syntexa-ch-unified-diff-text-4d2cf033","name":"agentshelf.syntexa.ch Unified Diff Text","description":"Call when an agent needs a unified diff of two strings. No network. Input size is capped. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/diff-text first.","url":"https://agentshelf.syntexa.ch/v1/diff-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","examples":["one\n"],"maxLength":100000,"description":"Original text. Shown as the left side of the unified diff."},"b":{"type":"string","examples":["two\n"],"maxLength":100000,"description":"Revised text. Shown as the right side of the unified diff."}}},"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_1D4jIekGLs59VhvquqxmV","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":"Computes a unified diff between two input strings and returns the diff output, with no network calls and a fixed cost of $0.002 USDC.","exampleAgentPrompt":"Can you give me a unified diff of these two strings — the original is 'Hello world\\nfoo bar\\n' and the updated version is 'Hello world\\nbaz qux\\n'?","exampleUseCases":[{"title":"Code review patch generation","prompt":"I have two versions of a config file. The original is the old nginx.conf and the updated one has some new server block changes — can you produce a unified diff so I can review what changed before applying it?"},{"title":"Detect edits in document drafts","prompt":"Here are two drafts of my project proposal — the first draft and the revised version. Can you diff them so I can see exactly which lines were added, removed, or changed?"},{"title":"Automated changelog between script versions","prompt":"I'm updating a shell script and want to log the changes. Can you compute a unified diff between the old script text and the new one so I can include it in the changelog?"}],"resultDescription":"The endpoint returns a unified diff string representing the line-by-line differences between input string 'a' (original) and string 'b' (modified), in standard unified diff format including context lines, hunks, and +/- line markers.","failureModes":["Input string 'a' or 'b' exceeds 100,000 character limit — request rejected","Missing required fields 'a' or 'b' — validation error returned","Payment of $0.002 USDC not provided or incorrect — 402 Payment Required","Malformed JSON body — 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, pure-computation unified diff between two text strings with no external network calls and a predictable fixed cost. It is ideal for code review automation, changelog generation, or patch creation inside an agent pipeline. Prefer the free sandbox endpoint POST /v1/sandbox/diff-text first if available; use this paid endpoint when the sandbox is unavailable or rate-limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:25.775Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-unified-diff-text-4d2cf033"}