UI DNA

Specifications · rev 0.3.1

Spec 03

Tools

Pin 12 of 12

Pin12

reconstruct_interface

Reconstruct interface · shape workflow · group Loop

Loopworkflow

Run the whole Phase 1 loop without an agent: scan → explore (safe) → tokens → generate → verify → report. Returns the DiffReport and the unknowns so you can start repairing. Each step that fails leaves its partial artifacts and is reported; later steps that depend on it are skipped, not faked.

CLIuidna reconstruct <url> <outDir>
MCPreconstruct_interface

03.12.1Effects

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

03.12.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.
outDirstringrequiredDirectory for the generated project.
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.
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); the generator turns them into typed mocks. Default none.
responsiveobjectoptionalResponsive-rule inference: where between and around the scanned widths the layout changes, and which stylesheet condition explains it.
policy"safe" | "forms"optionalExploration policy: "safe" never touches forms, "forms" fills and submits them with synthetic values, every submission request blocked. Default safe.
explorebooleanoptionalRun exploration. Default true.
installbooleanoptionalRun npm install in the generated project. Default true.
headlessbooleanoptional—
outRootstringoptional—

03.12.3Result fields

scanIdscanDirprojectPathdnaPathreportPathdiffReportstepsfindings

Every field arrives inside the evidence envelope.