Spec 03
Tools
Pin 12 of 12
Pin12
reconstruct_interface
Reconstruct interface · shape workflow · group Loop
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.
CLI
uidna reconstruct <url> <outDir>MCP
reconstruct_interface03.12.1Effects
Writes artifactsunder the scan directory
Destructivenon-destructive
Idempotentnot idempotent
Networkreaches the network
Long-runningprogress and cancellation
03.12.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. |
outDir | string | required | Directory for the generated project. |
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. |
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); the generator turns them into typed mocks. Default none. |
responsive | object | optional | Responsive-rule inference: where between and around the scanned widths the layout changes, and which stylesheet condition explains it. |
policy | "safe" | "forms" | optional | Exploration policy: "safe" never touches forms, "forms" fills and submits them with synthetic values, every submission request blocked. Default safe. |
explore | boolean | optional | Run exploration. Default true. |
install | boolean | optional | Run npm install in the generated project. Default true. |
headless | boolean | optional | — |
outRoot | string | optional | — |
03.12.3Result fields
scanIdscanDirprojectPathdnaPathreportPathdiffReportstepsfindingsEvery field arrives inside the evidence envelope.