{"uid":"cap_kj1AimMdbExitRR5K_YpG","slug":"agent-handoff-diff-b7285275","name":"Agent Handoff Diff","description":"Report what changed between two agent handoff states so the next agent reads only the delta","url":"https://agent-product-normalizer.vercel.app/api/v1/handoff-diff","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["before","after"],"properties":{"after":{"type":"string","maxLength":20000,"description":"Newer agent state"},"before":{"type":"string","maxLength":20000,"description":"Earlier agent state"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_hju4e5_eotoX3bazLd0n-","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 and returns the delta between two agent handoff states so the receiving agent only processes what changed","exampleAgentPrompt":"Show me only what changed between these two agent handoff states — the earlier one is [before state text] and the newer one is [after state text] — so I can pass just the delta to the next agent.","exampleUseCases":[{"title":"Reducing token cost between agent steps","prompt":"I have the agent's state from before tool call and after — can you diff these two snapshots and give me only the changed parts so the next agent doesn't have to re-read everything?"},{"title":"Detecting unexpected state mutations","prompt":"Something changed in the agent handoff I didn't expect — compare this earlier state and this newer state and tell me exactly what was added, removed, or modified."},{"title":"Summarizing progress for a handoff summary","prompt":"Before passing control to the next agent, diff the initial task state against the current state and show me only the new information so I can write a concise handoff note."}],"resultDescription":"A structured delta report highlighting what fields or content changed between the 'before' and 'after' agent states, including additions, deletions, and modifications — enabling the receiving agent to ingest only the changed information rather than the full state.","failureModes":["Missing 'before' or 'after' query parameters returns a validation error","State strings exceeding 20,000 characters are rejected","Identical before and after states return an empty delta","Malformed or non-serializable state strings may cause parsing errors","Network timeout if states are very large near the character limit"],"whenToPreferThis":"Choose this endpoint when orchestrating multi-agent pipelines where passing the full context on every handoff is token-inefficient or costly. It is especially valuable when agent states are large and only a small portion changes between steps, or when you need to audit what an agent actually modified during its execution turn.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-18T06:50:56.452Z","isFirstParty":false}