# WritersLogic DOM Skeleton Extractor

> WritersLogic DOM Skeleton Extractor is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Reduces an HTML document to its actionable interactive elements (links, buttons, inputs, selects, textareas, roles) with stable CSS selectors and accessible names, filtered for agent interaction

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/dom-skeleton?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-dom-skeleton-extractor-8daf1652
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0ne6bsHFlOzWri7EeiOx0

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 writerslogic-dom-skeleton-extractor-8daf1652 -d '<json body>'
```

Example prompt: Strip this HTML down to only the interactive elements I can click or fill in — give me each one with its tag, role, accessible name, and a stable CSS selector I can target, deduplicating any repeated controls and capping at 100 elements.

## When to prefer this

Choose this endpoint when an AI agent needs to understand what interactive elements exist on a webpage before taking action — particularly for form filling, navigation, or click-based automation from raw HTML. It is preferable over full HTML parsing because it filters noise, provides stable CSS selectors, and includes accessibility metadata. Best suited for static HTML snapshots; not suitable when interactive elements are injected by JavaScript after page load.

## Known failure modes

- HTML exceeds 100,000 character limit — request rejected
- maxElements out of range (must be 1–300) — validation error
- Empty or missing html field — validation error
- Malformed HTML may result in incomplete element extraction
- CSS-class-based visibility cannot be detected — some visually hidden elements may appear in results
- Dynamic content not present in static HTML will not be extracted

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured list of up to maxElements (default 100) interactive elements found in the HTML, each with: tag name, input type (if applicable), ARIA role, best-effort accessible name (from label associations, aria-label, etc.), and a stable CSS selector targeting exactly that element. Hidden elements (hidden, aria-hidden, inert, display:none, visibility:hidden, closed details, template/noscript) are omitted. Duplicate controls are collapsed when dedupe is enabled.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "maxLength": 100000,
   "minLength": 1,
   "description": "HTML source."
  },
  "dedupe": {
   "type": "boolean",
   "description": "Collapse elements with identical tag, type, role, name and href. Default true."
  },
  "maxElements": {
   "type": "integer",
   "maximum": 300,
   "minimum": 1,
   "description": "Maximum elements returned. Default 100."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-dom-skeleton-extractor-8daf1652/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
