# AgentDiet DOM Stripper — Context Window Distiller

> AgentDiet DOM Stripper — Context Window Distiller is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

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.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/dom-stripper?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-dom-stripper-context-window-distiller-35fe313d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HXIp24XkH_vT1BCL57Tin

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentdiet-dom-stripper-context-window-distiller-35fe313d
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-dom-stripper-context-window-distiller-35fe313d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
