{"uid":"cap_8oXGRCP--4VfRalzCQzY2","slug":"text-diff-x402-micro-pay-1e43ede5","name":"Text Diff — x402 Micro Pay","description":"Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.","url":"https://grokzilla.shop/api/skills/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"},"path":{"type":"string"},"type":{"type":"string","const":"http"},"method":{"type":"string"},"bodyType":{"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_zmT4Un7zNY_Vk1N5kuGIl","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 the difference between two text inputs and returns a structured diff result, billed per call via x402/USDC micropayment.","exampleAgentPrompt":"Can you diff these two versions of my README? Here's the original: 'Hello world. This is v1.' And here's the updated one: 'Hello world. This is v2. Added new features.'","exampleUseCases":[{"title":"Document revision change detection","prompt":"I have two versions of a contract clause — the original says 'The payment is due in 30 days' and the revised version says 'The payment is due in 14 days, with a 2% late fee.' Can you show me exactly what changed between them?"},{"title":"Code comment diff for review","prompt":"Can you compare these two versions of my function docstring and tell me what was added, removed, or changed? Old: 'Fetches user data from the database.' New: 'Fetches and caches user data from the primary database, with fallback to replica.'"},{"title":"Content update audit","prompt":"I need to know what changed between yesterday's version of our product description and today's. Old text: 'Fast and reliable cloud storage.' New text: 'Fast, reliable, and secure cloud storage with 99.99% uptime.'"}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating success and the matched path '/api/skills/text-diff', along with a structured diff representing the changes between the two input texts — including additions, deletions, and unchanged segments.","failureModes":["Missing required 'input' field returns a validation error","Malformed request body or incorrect 'type'/'method' fields may cause a 400-level error","Payment failure via x402 (insufficient USDC balance) results in a 402 Payment Required response","Empty or identical texts may return a diff with no changes","Oversized payloads may be rejected depending on service limits"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call text diff computation without standing up your own diff infrastructure. Ideal for AI agents that occasionally need to compare text snippets or document revisions on demand, billed at $0.006 USDC per call via x402 rails — no subscription or API key setup required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:44:26.079Z","isFirstParty":false}