{"uid":"cap_kBhiR8Yr2_bU6oZ6b0noU","slug":"agentdiet-semantic-html-pruner-d4a92e60","name":"AgentDiet Semantic HTML Pruner","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/semantic-html-pruner?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_xnjmgFzJsavAHSsDEFhvZ","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 semantic HTML down to its essential content, compressing context window token usage by up to 91%","exampleAgentPrompt":"Can you fetch https://example.com/article and strip it down to just the essential semantic content so it fits in my context window without all the nav menus, ads, and footer junk?","exampleUseCases":[{"title":"Webpage content extraction for RAG pipeline","prompt":"Grab https://techcrunch.com/2025/01/15/ai-agents-explainer/ and prune it to just the article body so I can feed it into my RAG pipeline without wasting tokens on the header and sidebar."},{"title":"Cost reduction for multi-page agent research","prompt":"I need to research 10 product pages but my token budget is tight — can you use AgentDiet to compress https://store.apple.com/us/product/iphone-15 down to just the semantic content so each page costs way less to process?"},{"title":"Clean content for LLM summarization","prompt":"Fetch https://en.wikipedia.org/wiki/Large_language_model and prune all the HTML noise so I get just the readable content — I want to summarize it without paying for all the template markup."}],"resultDescription":"Returns a JSON object with a 'data' field containing the pruned semantic HTML content, a 'status' field ('ok'), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%), confirming how much the content was reduced.","failureModes":["Invalid or unreachable URL returns an error status","Malformed input schema (missing required 'type' or 'method' fields) causes rejection","Pages behind authentication or paywalls may return incomplete or empty content","Very large pages may time out before compression completes","Payment not settled in USDC on Base causes 402 payment required response"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to fetch web content and minimize token consumption before inserting it into a prompt or context window. It is especially valuable in high-volume agentic pipelines where raw HTML would otherwise bloat costs — the pay-per-call micro-pricing at $0.001 USDC makes it economical at scale. Prefer it over generic web scrapers when you specifically need semantic distillation rather than raw HTML or plain text extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:23.931Z","isFirstParty":false,"canonicalSlug":"agentdiet-semantic-html-pruner-d4a92e60"}