webEmbedding

v0.3.13
io.github.jongko54/web-embedding Checked 9 hours ago Published 23 days ago

Clone 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.

ParameterTypeDescription
url *stringPublic http(s) URL of the page to inspect, capture, or clone.
timeout_secondsintegerTimeout 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.

ParameterTypeDescription
url *stringPublic http(s) URL of the page to inspect, capture, or clone.
timeout_secondsintegerTimeout 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.

ParameterTypeDescription
url *stringPublic http(s) URL of the page to inspect, capture, or clone.
capture_htmlbooleanReturn the rendered runtime HTML.
capture_screenshotbooleanTake a full-page PNG screenshot (needed for visual verification).
patternstringCase-insensitive regex for network/HTML URLs to report as embed or source hits (default spline|preview|embed|viewer|scene|iframe).
storage_state_output_pathstringPath to write the browser storage state after capture, so the session can be reused.
storage_state_pathstringPath to a Playwright storage-state JSON (cookies, localStorage) to load before capture, for pages behind a login the user owns.
user_data_dirstringPath to an existing Chrome profile directory, to capture a page behind a login the user owns. Omit for a clean session.
viewport_heightintegerPrimary browser viewport height in CSS pixels (default 1200).
viewport_widthintegerPrimary browser viewport width in CSS pixels (default 1440).
wait_secondsintegerUpper 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.

ParameterTypeDescription
candidatesarrayEmbed/source candidates as returned by discover_embed_candidates (objects with kind and url).
exact_requestedbooleanTrue (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable.
license_textstringLicense or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy.
site_profileobjectThe site_profile object returned by inspect_url.
source_signalsarrayExtra 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.

ParameterTypeDescription
url *stringPublic http(s) URL of the page to inspect, capture, or clone.
exact_requestedbooleanTrue (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable.
license_textstringLicense or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy.
source_signalsarrayExtra hints about the page's origin, e.g. ["framer", "spline", "export"]; merged with signals detected from the page.
timeout_secondsintegerTimeout 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.

ParameterTypeDescription
url *stringURL to embed. It must allow framing; check with inspect_url first.
frameworkstringSnippet flavor: html (plain iframe) or nextjs (React component).
titlestringAccessible 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.

ParameterTypeDescription
url *stringPublic http(s) URL of the page to inspect, capture, or clone.
breakpoint_profilesarrayExtra viewports to capture and verify: desktop (1440x1200), tablet (768x1024), mobile (390x844). Example: ["tablet", "mobile"].
capture_htmlbooleanInclude the rendered runtime HTML in the capture.
capture_screenshotbooleanTake a full-page PNG screenshot (needed for visual verification).
exact_requestedbooleanTrue (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable.
include_runtime_tracebooleanLaunch a real browser for runtime capture (default true). False limits the result to static HTML inspection.
license_textstringLicense or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy.
output_dirstringDirectory to write capture artifacts, generated files, and reports into; created if missing.
source_signalsarrayExtra hints about the page's origin, e.g. ["framer", "spline", "export"]; merged with signals detected from the page.
storage_state_output_pathstringPath to write the browser storage state after capture, so the session can be reused.
storage_state_pathstringPath to a Playwright storage-state JSON (cookies, localStorage) to load before capture, for pages behind a login the user owns.
timeout_secondsintegerTimeout in seconds for the static HTTP fetch of the page.
user_data_dirstringPath to an existing Chrome profile directory, to capture a page behind a login the user owns. Omit for a clean session.
viewport_heightintegerPrimary browser viewport height in CSS pixels (default 1200).
viewport_widthintegerPrimary browser viewport width in CSS pixels (default 1440).
wait_secondsintegerUpper 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.

ParameterTypeDescription
candidatesarrayEmbed/source candidates as returned by discover_embed_candidates (objects with kind and url).
capture_bundleobjectCapture bundle object returned by capture_reference_bundle.
exact_requestedbooleanTrue (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable.
license_textstringLicense or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy.
site_profileobjectThe site_profile object returned by inspect_url.
source_signalsarrayExtra 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.

ParameterTypeDescription
candidate_bundleobjectCapture bundle of the implementation to compare against the reference.
candidate_urlstringURL of the candidate implementation, recorded in the report.
reference_bundleobjectCapture bundle of the reference page, from capture_reference_bundle.
reference_urlstringURL 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.

ParameterTypeDescription
capture_bundle *objectCapture bundle object returned by capture_reference_bundle.
output_dirstringDirectory 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.

ParameterTypeDescription
capture_bundle *objectCapture bundle object returned by capture_reference_bundle.
output_dirstringDirectory 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.

ParameterTypeDescription
url *stringPublic http(s) URL of the page to inspect, capture, or clone.
breakpoint_profilesarrayExtra viewports to capture and verify: desktop (1440x1200), tablet (768x1024), mobile (390x844). Example: ["tablet", "mobile"].
capture_htmlbooleanCapture rendered HTML; with output_dir this also writes the offline snapshot.
capture_screenshotbooleanTake a full-page PNG screenshot (needed for visual verification).
exact_requestedbooleanTrue (default) when the user wants an exact, faithful clone; false when an approximate rebuild is acceptable.
include_runtime_tracebooleanLaunch a real browser for runtime capture (default true). False limits the result to static HTML inspection.
license_textstringLicense or permission text that allows reusing the page, from the user or the site; informs the reuse/rebuild policy.
output_dirstringDirectory for the clone and its evidence; the offline copy is written to snapshot/index.html (serve it over HTTP).
source_signalsarrayExtra hints about the page's origin, e.g. ["framer", "spline", "export"]; merged with signals detected from the page.
storage_state_output_pathstringPath to write the browser storage state after capture, so the session can be reused.
storage_state_pathstringPath to a Playwright storage-state JSON (cookies, localStorage) to load before capture, for pages behind a login the user owns.
timeout_secondsintegerTimeout in seconds for the static HTTP fetch of the page.
user_data_dirstringPath to an existing Chrome profile directory, to capture a page behind a login the user owns. Omit for a clean session.
viewport_heightintegerPrimary browser viewport height in CSS pixels (default 1200).
viewport_widthintegerPrimary browser viewport width in CSS pixels (default 1440).
wait_secondsintegerUpper 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.

ParameterTypeDescription
queue_root *stringDirectory holding the filesystem job queue; created if missing.
url *stringPublic http(s) URL to clone when the job runs.
clone_argsobjectAdditional clone_reference_url arguments stored with the job (same names as that tool, e.g. wait_seconds, breakpoint_profiles).
max_attemptsintegerMaximum run attempts before the job is marked failed (1-10, default 2).
metadataobjectFree-form JSON stored with the job, e.g. a ticket id.
output_dirstringDirectory the job writes its clone and reports into.
retry_delay_secondsintegerSeconds to wait before retrying a failed attempt (default 30).

list_clone_jobs

List persisted clone jobs from the filesystem-backed async queue.

ParameterTypeDescription
queue_root *stringDirectory holding the filesystem job queue; created if missing.
statesarrayOnly 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.

ParameterTypeDescription
job_id *stringJob id returned by enqueue_clone_job.
queue_root *stringDirectory holding the filesystem job queue; created if missing.

cancel_clone_job

Move a queued or retry-wait clone job to cancelled.

ParameterTypeDescription
job_id *stringJob id returned by enqueue_clone_job.
queue_root *stringDirectory holding the filesystem job queue; created if missing.
reasonstringOptional 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.

ParameterTypeDescription
queue_root *stringDirectory holding the filesystem job queue; created if missing.
job_idstringJob to run; omit to run the next due queued or retry_wait job.
worker_idstringOptional 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.

ParameterTypeDescription
har_path *stringPath to a HAR file, near-HAR JSON, or webEmbedding network/manifest.json to replay from.
consumebooleanWhen true (default), each recorded response is used once, so repeated identical requests step through the recorded responses in order.
output_pathstringOptional path to write the replay report JSON.
requestsarrayRequests to match against the archive: objects with url and optional method, id, postData. Omit to only summarize the archive.