clone_reference_url
Clone a live web page from a URL into an embeddable copy or self-contained offline HTML snapshot, then verify visual fidelity across desktop, tablet, and mobile screenshots.
Instructions
Clone a web page from its URL in one call. Use when the user asks to clone, copy, recreate, mirror, or make a page look exactly like a URL. Captures the live page in a real browser, reuses the original when it can be embedded, otherwise writes a self-contained offline HTML snapshot (inlined CSS, shadow DOM, localized fonts/images) or a rebuild, and self-verifies it against desktop/tablet/mobile screenshots. Returns the clone entrypoint, output directory, and fidelity scores.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "clone_reference_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL of the page to inspect, capture, or clone. | |
| output_dir | No | Directory for the clone and its evidence; the offline copy is written to snapshot/index.html (serve it over HTTP). | |
| capture_html | No | Capture rendered HTML; with output_dir this also writes the offline snapshot. | |
| license_text | No | License or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy. | |
| wait_seconds | No | Upper bound in seconds for each browser readiness wait (load, network quiet, lazy-load scroll); capture continues as soon as the page settles. | |
| user_data_dir | No | Path to an existing Chrome profile directory, to capture a page behind a login the user owns. Omit for a clean session. | |
| source_signals | No | Extra hints about the page's origin, e.g. ["framer", "spline", "export"]; merged with signals detected from the page. | |
| viewport_width | No | Primary browser viewport width in CSS pixels (default 1440). | |
| exact_requested | No | True (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable. | |
| timeout_seconds | No | Timeout in seconds for the static HTTP fetch of the page. | |
| viewport_height | No | Primary browser viewport height in CSS pixels (default 1200). | |
| capture_screenshot | No | Take a full-page PNG screenshot (needed for visual verification). | |
| storage_state_path | No | Path to a Playwright storage-state JSON (cookies, localStorage) to load before capture, for pages behind a login the user owns. | |
| breakpoint_profiles | No | Extra viewports to capture and verify: desktop (1440x1200), tablet (768x1024), mobile (390x844). Example: ["tablet", "mobile"]. | |
| include_runtime_trace | No | Launch a real browser for runtime capture (default true). False limits the result to static HTML inspection. | |
| storage_state_output_path | No | Path to write the browser storage state after capture, so the session can be reused. |