Skip to main content
Glama
WebCake Landing MCP

WebCake Landing MCP

by vuluu2k

clone_page

Read-only

Turn any web page, including React or Next sites, into an editable WebCake landing page by measuring it in a real browser at desktop and mobile widths so forms, sliders and popups stay interactive.

Instructions

Clones any web page into a Webcake landing page by MEASURING it in a real browser (headless Chrome via Playwright, JavaScript executed — works for React/Vue/Next sites too). The page is loaded at 1200 px and at 420 px; every visible text, image, button, painted box, divider, svg icon and form is recorded with its box, rotation and typography and placed on the landing canvas: desktop boxes scaled onto 960, mobile boxes as measured on 420 (elements the mobile layout hides get config.hide on mobile; mobile-only ones are hidden on desktop). Links become open_link events; fixed elements are pinned; a sticky header becomes the section's native sticky (a-t). Effects, native first: gradients (also gradient text), filters/backdrop blur, rotation and AOS / animate.css / WOW entrance animations map onto native settings; an overflow:hidden box whose content spills out becomes a clipping group (custom_css overflow:hidden); the page's own :hover rules (also ancestor rules like .card:hover img, applied on the element itself) + transitions and its looping CSS animations (@keyframes) become settings.extra_css scoped to #w- (the one thing no native setting covers); icon-font stylesheets go to settings.bhet; self-hosted @font-face fonts to settings.fontGroups. Forms keep every control as its native field (select with options, radio, checkbox-group, textarea, date, file), also forms without a tag. Interactive parts stay interactive, natively: accordions / FAQs (, Bootstrap collapse, aria-expanded panels) become a click→collapse on the question that collapses the answer on load; tab sets ([role=tabpanel], .tab-pane) become a carousel switched by its tab buttons (change_tab); modals hidden on load (.modal, , [role=dialog], .popup…) become landing popups, and the buttons/links that open them get open_popup; #anchor links get scroll_to; sliders (Swiper, Slick, Splide, Owl, Bootstrap carousel, Glide, Flickity, Keen, Embla) become a carousel of slides (hidden slides measured too, library clones skipped); YouTube / Vimeo / become the video element. Multi-colour svgs (logos, illustrations, gradients) become images of themselves; single-colour icons stay native svg masks. The source is validated like a save and cached: the result carries draft_id — save it with create_page({ draft_id, dry_run:false }). Robust to real sites: cookie / consent / newsletter overlays are dismissed (their accept / close clicked) and chat widgets left out before measuring, a fixed site header becomes the sticky first section, app shells that scroll inside a full-height box are unlocked, reveal-on-scroll content is scrolled into its shown state, a tall (also through a lone wrapper div) is split into its sections, overlapping (angled) sections keep their stacking, content clipped by overflow:hidden is cropped (images keep a crop), measured text heights are kept (config.virtualHeight), every colour is rgba(), and desktop/mobile elements are matched by DOM path, else by their text / picture. Approximations: an ancestor :hover fires when the element itself is hovered, other iframes become html-box embeds, content a site renders differently on each load may shift. Needs Playwright on the host (playwright-core + Chrome, or CHROME_BIN). No credentials, no writes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clone_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) URL of the page to clone.
htmlNoRaw HTML instead of a URL (a saved page / an exported file). Pass base_url so its relative images, stylesheets and fonts load.
nameNoPage name used when the draft is saved with create_page.
base_urlNoWith html: the page's original URL — relative assets (images, CSS, fonts) resolve against it, as if the page were loaded from there.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.16.1
    • addedInput schema / properties / base_url
      Added value: +{
      +  "description": "With html: the page's original URL — relative assets (images, CSS, fonts) resolve against it, as if the page were loaded from there.",
      +  "type": "string"
      +}
    • changedInput schema / properties / html / description
      Previous value: -"Raw HTML instead of a URL (relative assets will not load)."New value: +"Raw HTML instead of a URL (a saved page / an exported file). Pass base_url so its relative images, stylesheets and fonts load."
  2. Addedv1.13.6

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say readOnlyHint and openWorldHint; the description goes far beyond by naming the runtime dependency (playwright-core / CHROME_BIN), the 1200px and 420px measurement passes, overlay dismissal, and the caching/validation of the source. It also states its approximation limits (:hover ancestry, iframes becoming embeds, non-deterministic renders), which is unusually candid.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single unbroken paragraph of roughly 600 words, with no headings or line breaks to separate purpose, mapping behavior, robustness, and limitations. Much of the middle is element-by-element mapping detail (AOS, Swiper, Splide, Glide, Flickity, Embla, icon fonts, virtualHeight) that is implementation trivia for an invocation decision.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, side-effect-light but environment-dependent tool with no output schema, it covers the essentials: what is produced (draft_id), how to persist it, host prerequisites, and known failure approximations. It does not describe behavior on unreachable or auth-walled URLs, which is the one operational gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and all four parameters are already documented in the schema, so the baseline applies. The description adds only indirectly, noting relative assets need a base and that html substitutes for a URL, but it does not clarify the url-vs-html precedence or whether one is required beyond what the schema says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Clones any web page into a Webcake landing page") and immediately discloses the mechanism (headless Chrome via Playwright, JS executed). It distinguishes itself from any static ingest by stressing React/Vue/Next support and real measurement, which is exactly what an agent needs to pick it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context: use it to turn an existing live or saved page into a draft, then persist with create_page({ draft_id, dry_run:false }), and states prerequisites (Playwright + Chrome, no credentials, no writes). It never explicitly excludes sibling approaches such as a plain HTML/URL ingest, so an agent must infer when this heavier browser path is warranted.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.