{"uid":"cap_FW02cSEQAry3ect9Lf2Up","slug":"x402-micro-pay-text-diff-f84ac5fa","name":"x402 Micro Pay — Text Diff","description":"Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.","url":"https://x402-micro-pay.com/api/skills/text-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string"},"b":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"path":"/api/skills/text-diff"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5q6jt_rHJ3DULOuRjRKY5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","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, accessible via x402 micropayment rails at $0.006 USDC per call.","exampleAgentPrompt":"Compare these two paragraphs and show me exactly what changed — what was added, removed, or modified between the original and the revised version.","exampleUseCases":[{"title":"Document revision change tracking","prompt":"I have an original draft and a revised version of a policy document — can you diff them and tell me exactly what sentences were added, removed, or changed?"},{"title":"Code snippet diff for review","prompt":"Here are two versions of this function — the old one and the new one. What lines actually changed between them?"},{"title":"Detecting edits in user-submitted content","prompt":"A user submitted an updated bio — can you compare it to the version we have on file and tell me what they actually changed?"}],"resultDescription":"Returns a JSON object with ok:true and the path, along with the computed differences between the two input texts — typically including added, removed, and unchanged lines or spans so the caller can understand exactly what changed.","failureModes":["Missing required 'input' field or 'type'/'method' subfields returns a validation error","Payment failure or insufficient USDC balance causes 402 Payment Required response","Malformed request body returns a 400 error","Service unavailability returns 5xx errors","Very large text inputs may exceed payload limits"],"whenToPreferThis":"Choose this endpoint when you need a cheap, agent-friendly, pay-per-call text diff computation without managing your own diffing infrastructure. At $0.006 USDC per call over x402 micropayment rails, it's ideal for AI agents that need on-demand text comparison without subscriptions or API key management. Prefer this over rolling your own diff logic when operating in autonomous agent pipelines that already use x402 payment flows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T18:39:59.588Z","isFirstParty":false,"canonicalSlug":"x402-micro-pay-text-diff-f84ac5fa"}