webEmbedding
v0.3.13Clone any web page from a URL into a verified offline HTML copy, embed, or rebuild.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
detect_runtime_capabilities
Report whether node, Playwright, and a usable Chrome/Chromium binary are available for session-aware capture.
inspect_url
Inspect a URL before cloning: fetch it, read frame policy (X-Frame-Options/CSP), metadata, and platform signals, and summarize whether it can be embedded, sourced, or must be rebuilt.
| Parameter | Type | Description |
|---|---|---|
url * | string | Public http(s) URL of the page to inspect, capture, or clone. |
timeout_seconds | integer | Timeout in seconds for the static HTTP fetch of the page. |
discover_embed_candidates
Extract likely embed, preview, viewer, remix, and export candidates from a page.
| Parameter | Type | Description |
|---|---|---|
url * | string | Public http(s) URL of the page to inspect, capture, or clone. |
timeout_seconds | integer | Timeout in seconds for the static HTTP fetch of the page. |
trace_runtime_sources
Use a browser runtime to trace preview, embed, and scene URLs for a single viewport, with optional session-aware capture when Playwright is available.
| Parameter | Type | Description |
|---|---|---|
url * | string | Public http(s) URL of the page to inspect, capture, or clone. |
capture_html | boolean | Return the rendered runtime HTML. |
capture_screenshot | boolean | Take a full-page PNG screenshot (needed for visual verification). |
pattern | string | Case-insensitive regex for network/HTML URLs to report as embed or source hits (default spline|preview|embed|viewer|scene|iframe). |
storage_state_output_path | string | Path to write the browser storage state after capture, so the session can be reused. |
storage_state_path | string | Path to a Playwright storage-state JSON (cookies, localStorage) to load before capture, for pages behind a login the user owns. |
user_data_dir | string | Path to an existing Chrome profile directory, to capture a page behind a login the user owns. Omit for a clean session. |
viewport_height | integer | Primary browser viewport height in CSS pixels (default 1200). |
viewport_width | integer | Primary browser viewport width in CSS pixels (default 1440). |
wait_seconds | integer | Upper bound in seconds for each browser readiness wait (load, network quiet, lazy-load scroll); capture continues as soon as the page settles. |
classify_clone_mode
Decide whether a reference should be embedded, sourced, rebuilt, or blocked.
| Parameter | Type | Description |
|---|---|---|
candidates | array | Embed/source candidates as returned by discover_embed_candidates (objects with kind and url). |
exact_requested | boolean | True (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable. |
license_text | string | License or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy. |
site_profile | object | The site_profile object returned by inspect_url. |
source_signals | array | Extra hints about the page's origin, e.g. ["framer", "spline", "export"]; merged with signals detected from the page. |
audit_reference_url
Preflight check before cloning or embedding a URL, without launching a browser. Returns whether the page can be reused/embedded as-is, needs local browser capture, needs a logged-in session, needs manual review, or should be blocked, plus the next tool to call.
| Parameter | Type | Description |
|---|---|---|
url * | string | Public http(s) URL of the page to inspect, capture, or clone. |
exact_requested | boolean | True (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable. |
license_text | string | License or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy. |
source_signals | array | Extra hints about the page's origin, e.g. ["framer", "spline", "export"]; merged with signals detected from the page. |
timeout_seconds | integer | Timeout in seconds for the static HTTP fetch of the page. |
generate_embed_snippet
Generate a ready-to-paste iframe embed snippet (HTML or Next.js) for a URL that is known to allow framing.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to embed. It must allow framing; check with inspect_url first. |
framework | string | Snippet flavor: html (plain iframe) or nextjs (React component). |
title | string | Accessible title attribute for the iframe. |
capture_reference_bundle
Capture evidence for a URL with a real browser: runtime HTML, full-page screenshots, DOM and computed-style summaries, assets, network/HAR metadata, interactions, and optional desktop/tablet/mobile breakpoints. With output_dir and capture_html it also writes an offline HTML snapshot. Use when you will build or verify a page yourself.
| Parameter | Type | Description |
|---|---|---|
url * | string | Public http(s) URL of the page to inspect, capture, or clone. |
breakpoint_profiles | array | Extra viewports to capture and verify: desktop (1440x1200), tablet (768x1024), mobile (390x844). Example: ["tablet", "mobile"]. |
capture_html | boolean | Include the rendered runtime HTML in the capture. |
capture_screenshot | boolean | Take a full-page PNG screenshot (needed for visual verification). |
exact_requested | boolean | True (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable. |
include_runtime_trace | boolean | Launch a real browser for runtime capture (default true). False limits the result to static HTML inspection. |
license_text | string | License or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy. |
output_dir | string | Directory to write capture artifacts, generated files, and reports into; created if missing. |
source_signals | array | Extra hints about the page's origin, e.g. ["framer", "spline", "export"]; merged with signals detected from the page. |
storage_state_output_path | string | Path to write the browser storage state after capture, so the session can be reused. |
storage_state_path | string | Path to a Playwright storage-state JSON (cookies, localStorage) to load before capture, for pages behind a login the user owns. |
timeout_seconds | integer | Timeout in seconds for the static HTTP fetch of the page. |
user_data_dir | string | Path to an existing Chrome profile directory, to capture a page behind a login the user owns. Omit for a clean session. |
viewport_height | integer | Primary browser viewport height in CSS pixels (default 1200). |
viewport_width | integer | Primary browser viewport width in CSS pixels (default 1440). |
wait_seconds | integer | Upper bound in seconds for each browser readiness wait (load, network quiet, lazy-load scroll); capture continues as soon as the page settles. |
plan_reproduction_path
Produce a source-first execution plan using the current policy and capture bundle state.
| Parameter | Type | Description |
|---|---|---|
candidates | array | Embed/source candidates as returned by discover_embed_candidates (objects with kind and url). |
capture_bundle | object | Capture bundle object returned by capture_reference_bundle. |
exact_requested | boolean | True (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable. |
license_text | string | License or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy. |
site_profile | object | The site_profile object returned by inspect_url. |
source_signals | array | Extra hints about the page's origin, e.g. ["framer", "spline", "export"]; merged with signals detected from the page. |
verify_fidelity_report
Compare a reference capture against a candidate (e.g. your own implementation) and score visual, DOM, computed-style, and interaction similarity, listing the biggest differences to fix.
| Parameter | Type | Description |
|---|---|---|
candidate_bundle | object | Capture bundle of the implementation to compare against the reference. |
candidate_url | string | URL of the candidate implementation, recorded in the report. |
reference_bundle | object | Capture bundle of the reference page, from capture_reference_bundle. |
reference_url | string | URL of the reference page, recorded in the report. |
build_reproduction_bundle
Turn a capture bundle into an exact-reuse or reproduction bundle with persisted embed files when a trusted reuse path exists.
| Parameter | Type | Description |
|---|---|---|
capture_bundle * | object | Capture bundle object returned by capture_reference_bundle. |
output_dir | string | Directory to write capture artifacts, generated files, and reports into; created if missing. |
build_rebuild_scaffold
Generate a bounded rebuild scaffold from an existing capture bundle when exact reuse is unavailable.
| Parameter | Type | Description |
|---|---|---|
capture_bundle * | object | Capture bundle object returned by capture_reference_bundle. |
output_dir | string | Directory to write capture artifacts, generated files, and reports into; created if missing. |
clone_reference_url
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.
| Parameter | Type | Description |
|---|---|---|
url * | string | Public http(s) URL of the page to inspect, capture, or clone. |
breakpoint_profiles | array | Extra viewports to capture and verify: desktop (1440x1200), tablet (768x1024), mobile (390x844). Example: ["tablet", "mobile"]. |
capture_html | boolean | Capture rendered HTML; with output_dir this also writes the offline snapshot. |
capture_screenshot | boolean | Take a full-page PNG screenshot (needed for visual verification). |
exact_requested | boolean | True (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable. |
include_runtime_trace | boolean | Launch a real browser for runtime capture (default true). False limits the result to static HTML inspection. |
license_text | string | License or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy. |
output_dir | string | Directory for the clone and its evidence; the offline copy is written to snapshot/index.html (serve it over HTTP). |
source_signals | array | Extra hints about the page's origin, e.g. ["framer", "spline", "export"]; merged with signals detected from the page. |
storage_state_output_path | string | Path to write the browser storage state after capture, so the session can be reused. |
storage_state_path | string | Path to a Playwright storage-state JSON (cookies, localStorage) to load before capture, for pages behind a login the user owns. |
timeout_seconds | integer | Timeout in seconds for the static HTTP fetch of the page. |
user_data_dir | string | Path to an existing Chrome profile directory, to capture a page behind a login the user owns. Omit for a clean session. |
viewport_height | integer | Primary browser viewport height in CSS pixels (default 1200). |
viewport_width | integer | Primary browser viewport width in CSS pixels (default 1440). |
wait_seconds | integer | Upper bound in seconds for each browser readiness wait (load, network quiet, lazy-load scroll); capture continues as soon as the page settles. |
enqueue_clone_job
Persist a source-first clone job into a filesystem-backed async queue for later worker execution.
| Parameter | Type | Description |
|---|---|---|
queue_root * | string | Directory holding the filesystem job queue; created if missing. |
url * | string | Public http(s) URL to clone when the job runs. |
clone_args | object | Additional clone_reference_url arguments stored with the job (same names as that tool, e.g. wait_seconds, breakpoint_profiles). |
max_attempts | integer | Maximum run attempts before the job is marked failed (1-10, default 2). |
metadata | object | Free-form JSON stored with the job, e.g. a ticket id. |
output_dir | string | Directory the job writes its clone and reports into. |
retry_delay_seconds | integer | Seconds to wait before retrying a failed attempt (default 30). |
list_clone_jobs
List persisted clone jobs from the filesystem-backed async queue.
| Parameter | Type | Description |
|---|---|---|
queue_root * | string | Directory holding the filesystem job queue; created if missing. |
states | array | Only return jobs in these states: queued, retry_wait, running, succeeded, failed, blocked, needs_session, manual_review, cancelled. |
load_clone_job
Load one persisted clone job by id.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Job id returned by enqueue_clone_job. |
queue_root * | string | Directory holding the filesystem job queue; created if missing. |
cancel_clone_job
Move a queued or retry-wait clone job to cancelled.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Job id returned by enqueue_clone_job. |
queue_root * | string | Directory holding the filesystem job queue; created if missing. |
reason | string | Optional note recorded on the cancelled job. |
run_clone_job
Run one clone queue job, or the next due queued/retry-wait job when job_id is omitted.
| Parameter | Type | Description |
|---|---|---|
queue_root * | string | Directory holding the filesystem job queue; created if missing. |
job_id | string | Job to run; omit to run the next due queued or retry_wait job. |
worker_id | string | Optional identifier recorded as the worker that ran the job. |
replay_har_requests
Replay request specs against a standard HAR, near-HAR, or webEmbedding network manifest and return deterministic response matches.
| Parameter | Type | Description |
|---|---|---|
har_path * | string | Path to a HAR file, near-HAR JSON, or webEmbedding network/manifest.json to replay from. |
consume | boolean | When true (default), each recorded response is used once, so repeated identical requests step through the recorded responses in order. |
output_path | string | Optional path to write the replay report JSON. |
requests | array | Requests to match against the archive: objects with url and optional method, id, postData. Omit to only summarize the archive. |