{"uid":"cap_nqmW60hYvt3bqyB09QIZj","slug":"agentdiet-webpage-distiller-8a900498","name":"AgentDiet Webpage 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/webpage-distiller?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":{"url":{"type":"string"},"mode":{"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.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_Pf7Ahdgo0OTsdcs05FoVd","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":"Fetches and compresses a webpage's content into a token-efficient distillation, reducing context window usage by up to ~91% for AI agents","exampleAgentPrompt":"Can you fetch https://example.com/article and distill it down to the essential content so it fits in my context window without wasting tokens?","exampleUseCases":[{"title":"RAG pipeline token reduction","prompt":"Pull the content from https://techcrunch.com/2024/05/01/ai-funding-roundup/ and compress it as much as possible before adding it to my RAG context — I want the key facts without all the filler HTML."},{"title":"Agent research with limited context","prompt":"I need to summarize five news articles but my context window is almost full — can you distill https://www.bbc.com/news/technology-12345678 into just the essential text so I can fit it alongside the others?"},{"title":"Cost-efficient webpage ingestion","prompt":"Fetch https://docs.openai.com/api-reference and strip it down to just the meaningful content — I want to minimize the tokens I'm sending to the model to keep my API costs down."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled webpage content, a 'status' field ('ok' on success), and a 'roi_proof' object showing the achieved compression_ratio_pct (e.g. 91.4%), confirming how much token bloat was removed.","failureModes":["Invalid or unreachable URL returns an error status","Paywalled or JavaScript-rendered pages may not distill correctly","Payment failure via x402/USDC on Base blocks the request","Rate limiting or upstream fetch timeout for slow target sites","Malformed input schema (missing 'type' or 'method') causes a validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest webpage content but is constrained by context window size or token cost — especially in RAG pipelines, multi-URL research tasks, or any workflow where raw HTML bloat would overwhelm the LLM. It is particularly suited for agents operating on Base/USDC micropayment rails (x402/L402) and wanting deterministic, high-compression content extraction at $0.001 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:39.152Z","isFirstParty":false,"canonicalSlug":"agentdiet-webpage-distiller-8a900498"}