{"uid":"cap_HXIp24XkH_vT1BCL57Tin","slug":"agentdiet-dom-stripper-context-window-distiller-35fe313d","name":"AgentDiet DOM Stripper — Context Window Distiller","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/dom-stripper?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_VBB8nzmAakgecDIFok0w8","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 its DOM down to a compressed, token-efficient text representation, achieving up to ~91% compression ratio for AI agent context windows.","exampleAgentPrompt":"Fetch https://en.wikipedia.org/wiki/Large_language_model and strip it down to just the essential content — I want to put it in my context window without blowing my token budget.","exampleUseCases":[{"title":"LLM token budget management","prompt":"Grab https://docs.python.org/3/library/asyncio.html and compress it as much as possible before adding it to my prompt — I'm trying to stay under 8k tokens."},{"title":"Agent web research with compressed context","prompt":"I need to read through https://www.ycombinator.com/companies and fit the key content into my context window — can you strip the DOM so it's not bloated with HTML junk?"},{"title":"Cost-efficient web content ingestion","prompt":"Pull https://techcrunch.com/2024/01/15/openai-news/ and use AgentDiet to de-bloat it before I summarize it — I want to see the compression ratio too."}],"resultDescription":"A JSON object with a 'data' field containing the stripped/compressed page content, a 'status' field indicating success, and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) achieved by removing DOM noise.","failureModes":["Invalid or unreachable URL returns an error status","URL requires authentication or blocks bots, returning empty or partial content","Extremely large pages may exceed processing limits","Malformed input schema (missing required 'type' or 'method' fields) returns a validation error","Payment failure via x402/USDC on Base causes 402 response before processing"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to fetch web content but must minimize token usage in its context window. It is especially valuable when processing large HTML-heavy pages (news sites, documentation, wikis) where raw HTML would consume 10-20x more tokens than necessary. Prefer this over raw HTTP fetches when token cost or context length limits are a concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:17.771Z","isFirstParty":false,"canonicalSlug":"agentdiet-dom-stripper-context-window-distiller-35fe313d"}