{"uid":"cap_JhTbWOtOSPKxwQvFQakIg","slug":"agentdiet-search-extract-rag-context-distiller-b572537f","name":"AgentDiet Search-Extract — RAG Context Distiller","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/search-extract?utm_source=zero.xyz","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","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"query":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9tCP6vG5obNgdOs4__R_0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches and extracts distilled, token-compressed content from web or knowledge sources, returning a context-window-friendly payload with up to ~91% compression ratio","exampleAgentPrompt":"Search for information about 'transformer attention mechanisms' and give me the extracted, token-compressed result — I need it distilled down as much as possible to fit into my context window.","exampleUseCases":[{"title":"Token budget RAG pipeline compression","prompt":"I need to retrieve content about 'quantum computing basics' but my context window is nearly full — can you search and extract just the essential information, compressed to the smallest possible token size?"},{"title":"Agent knowledge lookup with minimal overhead","prompt":"Look up 'latest USDC stablecoin regulations' and return the distilled key facts — I want the compressed version so my agent doesn't waste tokens on boilerplate."},{"title":"Research extraction for downstream LLM call","prompt":"Search for 'GPT-4 vs Claude benchmark comparisons' and extract the core findings in the most token-efficient format you can, I'm about to feed this into another model with a tight context limit."}],"resultDescription":"A JSON object with a 'data' field containing the extracted/distilled content, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4% compression). The agent receives semantically dense, token-minimized content suitable for immediate use in a context window.","failureModes":["Missing required 'input' object returns validation error","Invalid 'type' field (must be 'http') causes rejection","Empty or missing 'query' queryParam may return empty data payload","Payment not settled in USDC on Base causes 402 Payment Required response","Upstream source unavailable may return empty or partial data field"],"whenToPreferThis":"Choose this endpoint when your agent needs to retrieve and use information but is constrained by context window size or token costs — especially in RAG pipelines where raw content is too verbose. Prefer over generic web scrapers or search APIs when token compression ratio matters and you want a deterministic, pay-per-call model at $0.01 USDC settled on Base via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:55.235Z","isFirstParty":false,"canonicalSlug":"agentdiet-search-extract-rag-context-distiller-b572537f"}