UI DNA

Specifications · rev 0.3.1

Spec 03

Tools

Pin 01 of 12

Pin01

scan_interface

Scan interface · shape capture · group Look

Lookcapture

Capture a page at each viewport: DOM, computed styles filtered to rendering properties, bounding boxes, accessibility tree, fonts, assets, network metadata and one screenshot per viewport. Creates a scan under ./.uidna/<scan-id>/ and returns the base state per viewport. Honors robots.txt and never bypasses access controls.

CLIuidna scan <url>
MCPscan_interface

03.01.1Effects

Writes artifactsunder the scan directory
Destructivenon-destructive
Idempotentnot idempotent
Networkreaches the network
Long-runningprogress and cancellation

03.01.2Input

FieldTypeRequiredDescription
urlstringoptionalPublic http(s) page to scan with Playwright-launched Chromium. robots.txt is always honored.
cdpEndpointstringoptionalAttach to your own Chrome started with --remote-debugging-port, e.g. http://localhost:9222. Requires your authorization.
targetIdstringoptionalCDP target (tab) id; defaults to the active page.
viewportsarray of integeroptionalViewport widths in CSS pixels. Heights are derived: ≥1200 → 800, ≥700 → 1024, otherwise 844.
budgetobjectoptionalPer-scan budget. Exhaustion ends the step with partial artifacts and a diagnostic.
headlessbooleanoptionalLaunch mode only. Default true.
crawlobjectoptionalBreadth-first crawl of same-origin links discovered on captured pages. Cross-origin links are recorded, never followed.
captureBodies"none" | "json"optionalStore JSON response bodies of XHR/fetch requests as data assets (redacted, size-capped). Default none.
responsiveobjectoptionalResponsive-rule inference: where between and around the scanned widths the layout changes, and which stylesheet condition explains it.
outRootstringoptionalDirectory that holds scans. Default ./.uidna

03.01.3Result fields

scanIdscanDirtargetpagesstatesbreakpointsassetsbudgetdnaPath

Every field arrives inside the evidence envelope.