List the interactive elements of an HTML page with stable CSS selectors
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
| Field | Type | Required | Description |
|---|---|---|---|
html | string; length 1..100000 | yes | HTML source. |
maxElements | integer; 1..300 | no | Maximum elements returned. Default 100. |
dedupe | boolean | no | Collapse 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.
| Field | Type | Required | Description |
|---|---|---|---|
status | string; one of "pass", "fail", "unknown", "unsupported" | no | pass: 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. |
elements | array<object>; max 300 items | no | |
found | integer | no | Visible interactive elements before dedupe and cap. |
skippedHidden | integer | no | |
truncated | boolean | no | |
witnesses | array<object> | no | |
versions | object | no | Every semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile). |
limits | array<string> | no | |
deterministic | boolean | no | Always 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
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent