List the interactive elements of an HTML page with stable CSS selectors

$0.005 USDC per call · Agent infrastructure · POST /api/v1/dom-skeleton · Id dom-skeleton

Reduces an HTML document to the elements an agent can act on: links with href, buttons, inputs (not type=hidden), selects, textareas, [role], [onclick], contenteditable, each with tag, type, role, best-effort accessible name (including label associations) and a CSS selector that matches exactly that element, preferring a stable id, then a data-testid-style attribute, name, aria-label, then a structural path anchored at the nearest stable id. Skips elements hidden by attributes (hidden, aria-hidden, inert, inline display:none or visibility:hidden, closed details, template/noscript) and collapses repeated identical controls. Static HTML only: no scripts run, stylesheets are not applied, and visibility from CSS classes is unknown.

What you get

A 200 KB page becomes a few dozen actionable elements. 100,000 characters per $0.005 call.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/dom-skeleton. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/dom-skeleton \
  -H 'content-type: application/json' \
  -d '{"html":"<form id=\"login\"><label for=\"u\">User</label><input id=\"u\" name=\"user\"><input type=\"password\" name=\"pw\" aria-label=\"Password\"><button type=\"submit\">Sign in</button><input type=\"hidden\" name=\"csrf\"></form><a href=\"/help\">Help</a>"}'

Input

FieldTypeRequiredDescription
htmlstring; length 1..100000yesHTML source.
maxElementsinteger; 1..300noMaximum elements returned. Default 100.
dedupebooleannoCollapse elements with identical tag, type, role, name and href. Default true.

Example request body

{
  "html": "<form id=\"login\"><label for=\"u\">User</label><input id=\"u\" name=\"user\"><input type=\"password\" name=\"pw\" aria-label=\"Password\"><button type=\"submit\">Sign in</button><input type=\"hidden\" name=\"csrf\"></form><a href=\"/help\">Help</a>"
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
elementsarray<object>; max 300 itemsno
foundintegernoVisible interactive elements before dedupe and cap.
skippedHiddenintegerno
truncatedbooleanno
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP. MCP clients reach it through the context-evidence-kit package.

Machine-readable