{"uid":"cap_PBBu0AzqIl8dMCCmh38jx","slug":"agentdiet-markdown-distill-context-window-compressor-4b96a840","name":"AgentDiet Markdown Distill — Context Window Compressor","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/markdown-distill?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_A-Z-V-UxCRX5GcQTqbL8G","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 returns a heavily compressed, distilled Markdown version of the content to reduce token consumption in AI agent context windows","exampleAgentPrompt":"Can you fetch https://en.wikipedia.org/wiki/Artificial_intelligence and give me a distilled, token-efficient markdown version of it — I need to fit it in my context window without burning through tokens.","exampleUseCases":[{"title":"Research article ingestion for agents","prompt":"Pull https://arxiv.org/abs/2301.07041 and distill it down to compact markdown so I can analyze the paper without blowing up my context window."},{"title":"Competitive intelligence on a product page","prompt":"Fetch https://openai.com/pricing and compress it into lean markdown — I want the key info without all the HTML cruft eating my token budget."},{"title":"News article summarization pipeline","prompt":"Grab https://techcrunch.com/2024/05/01/some-article and run it through the markdown distiller so I get just the essential content in the smallest token footprint possible."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled markdown content, a 'status' field ('ok'), and a 'roi_proof' object that includes a 'compression_ratio_pct' metric (e.g. 91.4%) showing how much the content was compressed relative to the original.","failureModes":["Invalid or unreachable URL returns an error status","URL behind authentication or paywalls may return incomplete content","Very large pages may timeout or return partial content","Non-HTML URLs (PDFs, binaries) may not compress meaningfully","Missing required 'url' query parameter causes a validation error","Payment failure via x402/USDC on Base blocks the request"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read web content but must conserve context window tokens — especially useful in multi-step pipelines where many URLs need to be ingested. Prefer it over raw web scraping when token efficiency is the primary concern, or when feeding long-form articles, documentation, or product pages into an LLM with limited context. The pay-per-call USDC micropayment model makes it cost-effective at $0.001 per distillation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:20.315Z","isFirstParty":false,"canonicalSlug":"agentdiet-markdown-distill-context-window-compressor-4b96a840"}