Spec 03
Tools
Pin 01 of 12
Pin01
scan_interface
Scan interface · shape capture · group Look
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.
CLI
uidna scan <url>MCP
scan_interface03.01.1Effects
Writes artifactsunder the scan directory
Destructivenon-destructive
Idempotentnot idempotent
Networkreaches the network
Long-runningprogress and cancellation
03.01.2Input
| Field | Type | Required | Description |
|---|---|---|---|
url | string | optional | Public http(s) page to scan with Playwright-launched Chromium. robots.txt is always honored. |
cdpEndpoint | string | optional | Attach to your own Chrome started with --remote-debugging-port, e.g. http://localhost:9222. Requires your authorization. |
targetId | string | optional | CDP target (tab) id; defaults to the active page. |
viewports | array of integer | optional | Viewport widths in CSS pixels. Heights are derived: ≥1200 → 800, ≥700 → 1024, otherwise 844. |
budget | object | optional | Per-scan budget. Exhaustion ends the step with partial artifacts and a diagnostic. |
headless | boolean | optional | Launch mode only. Default true. |
crawl | object | optional | Breadth-first crawl of same-origin links discovered on captured pages. Cross-origin links are recorded, never followed. |
captureBodies | "none" | "json" | optional | Store JSON response bodies of XHR/fetch requests as data assets (redacted, size-capped). Default none. |
responsive | object | optional | Responsive-rule inference: where between and around the scanned widths the layout changes, and which stylesheet condition explains it. |
outRoot | string | optional | Directory that holds scans. Default ./.uidna |
03.01.3Result fields
scanIdscanDirtargetpagesstatesbreakpointsassetsbudgetdnaPathEvery field arrives inside the evidence envelope.