{"uid":"cap_nIwIBWcIos8ua2iwPUKfU","slug":"forest-agent-tools-json-diff-2795cab4","name":"Forest Agent Tools – JSON Diff","description":"Machine-readable contract for active Forest paid capabilities. Unsigned paid calls return HTTP 402 with a PAYMENT-REQUIRED x402 challenge.","url":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/json/diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"description":"Public after value used to scope this lookup."},"before":{"description":"Public before value used to scope this lookup."}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"equal":false,"scope":"caller_supplied_json_structural_diff_only","truncated":false,"differences":[],"input_bytes":0,"nodes_visited":0,"array_semantics":"index_based","difference_count":0},"meta":{"cache":"miss","provider":"local-json","checked_at":"2026-01-01T00:00:00.000Z","duration_ms":0},"version":"1","capability":"json.diff"}},"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_yhqG-aGmJ7nSD_AabT0if","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":"Deep-compares two JSON values with deterministic key ordering and index-based array semantics, returning bounded added, removed, and changed paths with before/after primitive values.","exampleAgentPrompt":"Compare these two JSON objects and tell me exactly what changed — what was added, removed, or modified: before is {\"name\":\"Alice\",\"age\":30,\"role\":\"admin\"} and after is {\"name\":\"Alice\",\"age\":31,\"role\":\"user\",\"email\":\"alice@example.com\"}.","exampleUseCases":[{"title":"API response change detection","prompt":"I have two API responses saved from yesterday and today — can you diff them and tell me which fields were added, removed, or changed? Before: {\"status\":\"active\",\"count\":5,\"items\":[\"a\",\"b\"]} and after: {\"status\":\"inactive\",\"count\":6,\"items\":[\"a\",\"b\",\"c\"]}."},{"title":"Config file version comparison","prompt":"My deployment config changed between releases — diff these two JSON configs for me and list every path that was modified, added, or deleted. Before is {\"replicas\":2,\"timeout\":30,\"debug\":true} and after is {\"replicas\":3,\"timeout\":30,\"debug\":false,\"region\":\"us-east-1\"}."},{"title":"Agent pipeline output audit","prompt":"I need to audit what an AI agent changed in a JSON document — given the before state {\"user\":\"bob\",\"score\":80,\"tags\":[\"vip\"]} and the after state {\"user\":\"bob\",\"score\":95,\"tags\":[\"vip\",\"premium\"],\"verified\":true}, show me the exact diff with before and after values for each changed path."}],"resultDescription":"A bounded diff result listing added paths, removed paths, and changed paths between the before and after JSON values. Changed paths include the primitive before and after values. Uses deterministic object-key ordering and explicit index-based array semantics. No network requests, model inference, persistence, or mutations are performed.","failureModes":["Malformed JSON in before or after fields returns an error indicating which value failed to parse","Excessively large or deeply nested JSON may hit bounding limits and return a partial or truncated diff","Missing before or after field in the request body results in a validation error","Payment not included or invalid returns HTTP 402 with machine-readable payment contract"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, structured diff of two JSON values with explicit array index tracking and reliable key ordering — especially useful for auditing agent-generated mutations, detecting API response drift, or comparing configuration snapshots. Prefer over client-side diffing when you need a paid, auditable, bounded result without writing custom comparison logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T00:41:10.081Z","isFirstParty":false,"canonicalSlug":"forest-agent-tools-json-diff-2795cab4"}