{"uid":"cap_dhee5he5VeDyXop-W81jf","slug":"agentdiet-clean-html-context-window-html-de-bloater-b84f0699","name":"AgentDiet Clean HTML — Context Window HTML De-Bloater","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.agentdiet.dev/v1/clean-html?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_peJt3fK5fLTahvcjeo41B","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 a URL and strips HTML down to essential content, achieving up to 91%+ token compression for AI context windows","exampleAgentPrompt":"Can you fetch https://example.com/article and strip out all the HTML noise so I only get the clean readable content — I need it compressed as much as possible to fit in my context window?","exampleUseCases":[{"title":"RAG pipeline web page ingestion","prompt":"Pull the content from https://docs.openai.com/api-reference and clean out all the HTML clutter so I can feed just the essential text into my retrieval pipeline without blowing up my token budget."},{"title":"Agent summarization with limited context","prompt":"I need you to fetch https://techcrunch.com/2025/01/15/big-news-story and de-bloat the HTML before summarizing it — use AgentDiet to get the compressed clean text first."},{"title":"Competitive research content extraction","prompt":"Grab https://competitor.com/pricing, strip all the HTML boilerplate and navigation junk, and give me just the meaningful content so I can analyze their pricing structure."}],"resultDescription":"Returns a JSON object with a `data` field containing the cleaned/compressed content, a `status` field ('ok'), and a `roi_proof` object including `compression_ratio_pct` showing the percentage of tokens removed (e.g. 91.4%).","failureModes":["Target URL is unreachable or returns a non-200 status — endpoint may return an error status","URL parameter is missing or malformed — request rejected","Target page is JavaScript-rendered and content is not available in static HTML — output may be sparse","Rate limiting or payment failure via x402/L402 — call not processed","Target URL returns non-HTML content (PDF, binary) — cleaning may fail or return empty data"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to fetch and process web content but token cost is a concern — it is purpose-built for context window optimization, delivering up to 91%+ compression. Prefer it over raw HTML fetching or generic web scrapers when feeding content to LLMs, building RAG pipelines, or summarizing articles. It is especially useful in A2A and MCP workflows where multiple pages need to be ingested cheaply. The $0.001 USDC per call micropayment via x402 makes it cost-effective at scale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:01.739Z","isFirstParty":false,"canonicalSlug":"agentdiet-clean-html-context-window-html-de-bloater-b84f0699"}