---
canonical_url: "https://docs.composio.dev/toolkits/unbounce_mcp"
markdown_url: "https://docs.composio.dev/toolkits/unbounce_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Unbounce MCP

Build, edit and publish Unbounce landing pages and AI Builder pages, manage variants, A/B traffic, conversion goals, URLs, redirects and page groups, and read page stats through Unbounce's official hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 44
- **Triggers:** 0
- **Slug:** `UNBOUNCE_MCP`
- **Version:** 00000000_00

## Tools

### Bulk edit variants

**Slug:** `UNBOUNCE_MCP_BULK_EDIT_VARIANTS`

Apply the same edit to many MCP-managed variants at once. Pass `targets` (page_uuid + variant letter) and `ops`, an ordered list of edits to apply identically to every target.

An op is either a `replace` (literal, non-regex find/replace on the html, css, or js stream) or a `selector` op (CSS selector + action — set_text, set_html, set_attribute, set_style, add_class, remove_class — applied to matching elements in the html stream). For a per-target value (e.g. each page's own product name), give the op a `value_map` (page_uuid -> value) instead of a single value; targets missing from the map are left untouched. Selector ops that don't match a given target's markup are a no-op, so stack several to handle mixed markup across the set.

`dry_run` defaults to true: it reports match counts per target without writing anything, so you can preview and see which targets a change actually hits. Re-run with `dry_run: false` to stage the changes; nothing goes live until each page is published (publish_page), so a bad batch is recoverable by simply not publishing.

Only MCP-managed variants are edited — a hand-built Unbounce-builder variant is reported `skipped`, not failed, so one bad target never aborts the batch. To swap in a new image, upload it first (upload tool) and use its upload://<handle>/<path> reference as an op value (e.g. set_attribute src); it's rehosted to a client-owned CDN URL at apply time. upload:// refs must point at image/font files and only work in html/css ops; a bad ref fails the whole call up front. Referenced images/fonts are rehosted and external refs pre-flighted the same way as update_variant_from_html.

Content is read and written server-side and never passes through this conversation. Very large batches run until a wall-clock budget; anything not reached comes back under `not_processed` (with `stopped_early: true`) so you can re-run for just those. Dynamic Text Replacement (`<ub:dynamic>`) is a paid feature — if the account isn't entitled, a target whose edit would introduce the tag is reported as an `error`, not applied, without affecting the rest of the batch.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ops` | array | Yes | The ordered transform to apply identically to every target. |
| `dry_run` | boolean | No | Default true. When true, report match counts per target and write nothing. Pass false to stage the changes. |
| `targets` | array | Yes | The variants to edit. Build this from list_client_pages / list_page_variants. |
| `check_external_refs` | string ("fatal" | "warn" | "off") | No | How to handle external (http(s)) references that don't resolve when applying. `fatal` (default): a dead Unbounce-hosted asset URL fails that target; `warn`: never block; `off`: skip the check. Only relevant when dry_run is false. |

### Create ai builder page

**Slug:** `UNBOUNCE_MCP_CREATE_AI_BUILDER_PAGE`

Create a new, unpublished AI Builder page in a client from an editor document. The result is a normal AI Builder page: the user can open and edit it in the Unbounce AI builder, and the Classic HTML tools (update_variant_from_html and the like) do not apply to it.

Pass exactly one of `document` or `document_ref`. `document` is the editor document itself — GrapesJS project data, the same shape get_ai_builder_document returns — and is how a document under about 100 KB is created in one call, with no upload. Above that, upload the JSON (`upload`, or `upload_inband` when you cannot run shell) and pass `document_ref` instead. Author it with get_ai_builder_catalog first: use only its component types, and style with its style-guide variables rather than hard-coded values. Either way the document must serialize to at most 1,000,000 bytes.

Brand colours and fonts the user names go in `theme`, not in literal values: it maps style-guide variables (`style_guide.themeable` in get_ai_builder_catalog) to values and sets them as the page's theme, as the AI builder's theme panel would, so every component styled with `var(--…)` follows and the user can change them in that panel, where each shows as Custom. A theme is merged over any the document already carries. Setting a palette's base colour (`--brand`, `--ub-color-secondary`, `--ub-color-accent`, `--ub-color-text`, `--ub-success`, `--ub-warning`, `--ub-danger`) as a `#` hex also sets its five-step series and moves the colours that still follow it (buttons, links, form focus), as the AI builder does, unless `theme` sets those itself. Give a palette colour as `#` hex or `rgb()`: any other form (a colour name, `hsl()`) is written but moves nothing, and `theme_warnings` says so. A font variable takes a Google Fonts family from the AI builder's catalogue (or a generic or system family), and its web font is declared for loading. A literal colour is for a one-off accent only; never write a literal font family. An unknown variable or family fails the call (`invalid-theme`) before anything is created.

The document is validated against the client's catalog and style guide BEFORE anything is created: unknown component types, undefined style variables, event-handler attributes (`on*`), component `script` and `javascript:` URLs fail the call with every problem listed, and no page is left behind, as is a document in which two components share an `attributes.id` (`duplicate-id`). To run code on the page, use set_ai_builder_custom_code — custom-code slot content in this document is refused. A script component is not a slot and is still accepted. `limits` (on success and on a validation failure) names what the check does not cover, so a pass is not a guarantee the page renders as intended.

An account whose plan lacks AI Builder (`builders.ai_builder` false in list_accounts_and_clients) is refused before anything is uploaded, naming create_page_from_html when the account has the Classic Builder.

The page is pinned to a style guide at creation — the only moment one can be set. Omit `style_guide_id` to use the client's resolved style guide; the call fails, creating nothing, when none resolves.

A component's inline `style` (on the component or in its `attributes`) is moved, values unchanged, into its own `#id` rule in `styles`, where the AI builder's Style Manager edits it; a component without an `attributes.id` is given one, listed in `generated_ids`.

The published page shows the stored children, while the AI builder rebuilds some of them from traits, so a few are set from their traits before saving: a `ub-form-button`'s `text` (what it publishes) and `aria-label` from its `data-label`, and the items of a `ub-pricing-card`'s own `ul.ub-pricing-card__features` from `data-features` (one `li.ub-pricing-card__feature` per `|`-separated entry, the entry being its markup, as in the editor). `warnings` lists, without failing the call, a pricing card with no features container (or traits and no children), and a component of a type with `data-*` traits whose children carry none of the classes its catalog default children carry, which the AI builder cannot update from its traits.

A document that contains a form and does not already set `activeGoals` is saved with a form conversion goal, so the published form counts. The result says so (`form_goal_defaulted`). Turn it off, or add link, phone, and lightbox goals, with set_conversion_goals before publish_page.

Returns the page uuid (`page_id`), `variant_id`, the pinned `style_guide_id`, the theme written (`theme_applied`, and `theme_derived` for the values derived from it) when `theme` was given, and `editor_url` / `overview_url` for the user. The page is left unpublished with no URL. If the page is created but its content cannot be written, the call fails naming the page uuid and variant: that page has no content, cannot be published until content is written, and should be removed with delete_page before retrying.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `theme` | object | No | Optional page theme: style-guide variable → value, e.g. { "--brand": "#0a7cff", "--ub-font-display": "Poppins" }. Only the variables in get_ai_builder_catalog's `style_guide.themeable`. Use it for the user's brand colours and fonts. |
| `context` | string | Yes | The numeric client (sub-account) id the page is created in — the client's numeric id from list_accounts_and_clients, the same `context` get_ai_builder_catalog takes. |
| `document` | object | No | The editor document itself (GrapesJS project data: an object with a `pages` array). Use this under about 100 KB. Exactly one of document or document_ref. |
| `page_name` | string | No | Optional name for the new page. |
| `document_ref` | string | No | upload:// reference to a JSON file holding the editor document (GrapesJS project data: an object with a `pages` array). Use this above about 100 KB. Exactly one of document or document_ref. |
| `variant_name` | string | No | Optional name for the page's first variant. |
| `style_guide_id` | string | No | Optional style guide to pin the page to — `style_guide.style_guide_id` from get_ai_builder_catalog. Omit it to use the client's resolved style guide. |

### Create ai builder variant

**Slug:** `UNBOUNCE_MCP_CREATE_AI_BUILDER_VARIANT`

Add a variant to an existing AI Builder page, for an A/B test. Pass exactly one source. `document` or `document_ref` adds an authored editor document, the same input create_ai_builder_page takes: `document` is the JSON object itself, for a document under about 100 KB; above that, upload the JSON and pass `document_ref`. Either is validated the same way against the client's catalog and the page's style guide before anything is created. `source_variant` is the letter of one of the page's variants to copy — content, conversion goals, lineage and style guide included — which is the usual way to start an A/B test: copy, then edit_ai_builder_page the copy.

A document is prepared as create_ai_builder_page prepares one: a document in which two components share an `attributes.id` is refused (`duplicate-id`), inline styles move into `#id` rules (ids it had to add are in `generated_ids`), and children the AI builder rebuilds from traits are set from them (`warnings` lists what could not be).

A document that does not set `activeGoals` takes the champion's conversion goals, so both variants count the same conversions: each goal the document has an element for is copied (`goals_copied_from`, `active_goals`) and the rest are listed in `goals_dropped`. When the champion has no goals to copy, a document with a form is saved with a form goal (`form_goal_defaulted`), as create_ai_builder_page saves one. Goals are page-wide: change them with set_conversion_goals once the variant is routed.

The page must be an AI Builder page owned by `context` (list_client_pages with builder: ai_builder), on an account whose plan includes AI Builder and A/B testing; a Classic page is refused — use create_variant_from_html or create_variant_from_existing_variant there.

The new variant is STAGED on the page's draft with no traffic. On a page already split (weighted or Smart Traffic) it is added to the test as a challenger at weight 0; on a single-routed page it stays out of the test until set_traffic gives it a share. Either way, set_traffic then publish_page make it live. Returns the new variant's `letter` and `standing`, `version_id` (document path), `style_guide_id` and `editor_url`. If the variant is created but its content cannot be written, the call fails naming the letter: remove it with delete_variant before retrying.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `context` | string | Yes | The numeric client (sub-account) id that owns the page. |
| `document` | object | No | The editor document itself (GrapesJS project data: an object with a `pages` array). Use this under about 100 KB. Omit when passing document_ref or copying a variant. |
| `page_uuid` | string | Yes | The AI Builder page's uuid (pageUuid from list_client_pages). |
| `document_ref` | string | No | upload:// reference to a JSON file holding the editor document (GrapesJS project data: an object with a `pages` array). Use this above about 100 KB. Omit when passing document or copying a variant. |
| `variant_name` | string | No | Optional name for the new variant. Defaults to "New variant" for a document, and to "<source name> - copy" for a copy. |
| `source_variant` | string | No | The letter of the variant to copy (from list_page_variants). Omit when adding an authored document. |

### Create page from html

**Slug:** `UNBOUNCE_MCP_CREATE_PAGE_FROM_HTML`

Create a new, unpublished Unbounce landing page in a client from already-uploaded HTML/CSS/JS, as an MCP-managed page — it can only be edited afterwards with these MCP tools, never in the Unbounce builder, so don't suggest the builder to the user.

Pass `upload://` references from `upload`: `html_ref` (body-content HTML for the page's Custom HTML block), optional `css_refs` (concatenated into the page stylesheet), and optional `scripts` (each becomes a custom-JavaScript element — a .js file, an external `src` include, or verbatim `<script>` markup, each with its own name and placement). Referenced images and fonts are rehosted as client-owned Unbounce assets and the markup rewritten to the resulting CDN URLs — relative references resolve against the HTML file's folder in the same upload bundle, large embedded data URIs are extracted, and external `http(s)` URLs are left untouched. To reuse an asset already in the client's library instead of uploading a duplicate, reference its `cdn_url` from list_assets; assets this tool does upload are deduplicated against the library too.

A `<form>` in the HTML is automatically wired for lead capture, pointed at Unbounce's submission gateway. It must be well-formed — one `<form>` with named fields and a submit button, no `pageId`/`pageVariant` fields, no `onsubmit`/`onclick` handlers — or the call fails up front listing every issue. Submission belongs to the Unbounce runtime: no script (inline or in `scripts`) may listen for `submit`, POST to `/fsg`/`/fsn`/`/fs` or the form's `action` itself, or assign to a `window.ub.hooks` array — the call rejects those too (a hand-rolled POST is flagged as spam; remote `src` includes are not inspected). A successful submit shows a default "Thank you!" confirmation dialog; to customize the post-submit experience (message, redirect, hiding the form, mirroring the lead to a webhook), `.push` a callback onto `window.ub.hooks.afterFormSubmit` in a `scripts` entry or an inline `<script>` in the body HTML, which suppresses the default dialog.

The page is created in the given numeric `context` (client) and left unpublished — no URL is assigned. Surviving external references are pre-flight checked for reachability (`check_external_refs`, default `fatal`): a dead Unbounce-hosted asset URL fails the call up front (it would abort publish later); dead third-party URLs come back as `unreachable_refs` warnings instead. Head metadata tags in the HTML (`<title>`, meta description/keywords/robots, `og:*`, favicon) are lifted out and applied as real page metadata, reported under `head_metadata` (manage it afterwards with set_page_metadata); tags with no platform slot (twitter:*, canonical, hreflang) come back as warnings. An account whose plan lacks the Classic Builder (`builders.classic` false in list_accounts_and_clients) is refused before anything is uploaded, naming create_ai_builder_page when the account has AI Builder. Dynamic Text Replacement (`<ub:dynamic>`) is a paid feature — HTML containing it is rejected up front if the account isn't entitled (check with get_account_plan). File bytes are read server-side and never pass through this conversation. Returns the new page's numeric id and variant id (feed the variant id to get_variant), plus the list of created assets.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `context` | string | Yes | The numeric client (sub-account) id the page is created in — the same `context` the other page tools take. The page lands in this client. |
| `js_refs` | string | No | REMOVED — renamed to `scripts`, which also accepts external includes, a name, and a placement. Passing it is an error: move the upload:// references into `scripts`. |
| `scripts` | array | No | The page's custom-JavaScript elements. Each entry is either a bare upload:// reference string (a .js file injected before the closing body tag, named after the file) or an object with exactly one of `ref` (a .js file), `src` (an absolute http(s) URL to include — a popup or other third-party embed), or `tag` (verbatim <script> markup), plus optional `name`, `placement` (head / body_top / body_bottom), and — for `src` only — `async` / `defer`. |
| `css_refs` | array | No | Optional upload:// references to CSS files, concatenated in order into the page stylesheet. |
| `html_ref` | string | Yes | upload:// reference to the body-content HTML for the page (stored in the Custom HTML element). Provide body-ready markup, not a full <html> document. |
| `page_name` | string | No | Optional name for the new page. |
| `check_external_refs` | string ("fatal" | "warn" | "off") | No | How to handle external (http(s)) references that survive rehosting and don't resolve. `fatal` (default): a dead Unbounce-hosted asset URL (which would abort publish) fails the call before the page is created; dead third-party URLs are returned as warnings. `warn`: never block — every unreachable ref is reported as a warning. `off`: skip the reachability check entirely (no network round-trips). |

### Create variant from existing variant

**Slug:** `UNBOUNCE_MCP_CREATE_VARIANT_FROM_EXISTING_VARIANT`

Clone an existing Unbounce page (one built in the Unbounce builder, not through MCP) into an MCP-managed variant, as an exact copy — a one-way, one-time conversion (edit the result afterwards with these MCP tools only, never in the Unbounce builder).

Pass the numeric `source_variant_id` (from list_page_variants) and its `context` (client id). Omit `target_page` to create a NEW page (the source becomes variant a); pass a `target_page` pageUuid to add the copy as a new staged challenger variant on that existing MCP page. The source is rendered and transformed to MCP-format HTML/CSS; a lead form's confirmation subpage carries over as an embedded modal, and Dynamic Text (`<ub:dynamic>`) survives.

If the source is already MCP-managed, nothing is created and the tool reports it. Autoscale (fixed-width) source pages convert too: the clone carries the per-breakpoint layout and renders faithfully at each breakpoint, but runtime viewport scaling (--scale) is not preserved — the conversion report notes this and points to mcp-modernize for a fully responsive rewrite. The result is created UNPUBLISHED — assign a URL/traffic and publish_page to go live. To copy a whole multi-variant page, call once per variant (first with no target_page, then with the returned page uuid) and set traffic/goals afterwards. Returns the new page/variant identity plus a conversion report. The source's scripts carry over as custom-JavaScript elements, and get_variant hands every one of them back as a `scripts` entry: an editable js file (`ref`), an external include (`src`), or verbatim markup (`tag`). Re-send them on update_variant_from_html to keep them, or omit `scripts` entirely to leave them untouched.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `context` | string | Yes | The numeric client (sub-account) id that owns the source page and receives the clone. |
| `page_name` | string | No | Optional name for the new page (only when creating a new page; ignored with target_page). |
| `target_page` | string | No | Optional pageUuid of an existing MCP page to add the clone to as a new variant. Omit to create a brand-new page from the source (the source becomes variant a). |
| `source_variant_id` | string | Yes | The numeric variant id to clone (from list_page_variants). |

### Create variant from html

**Slug:** `UNBOUNCE_MCP_CREATE_VARIANT_FROM_HTML`

Add a new variant to an existing Unbounce landing page (by `page_uuid` from list_client_pages) from already-uploaded HTML/CSS/JS, as an MCP-managed variant — editable afterwards with these MCP tools only, never in the Unbounce builder (don't suggest the builder to the user).

Pass `upload://` references from `upload`: `html_ref` (body-content HTML for the variant's Custom HTML block), optional `css_refs` (concatenated into the variant stylesheet), optional `scripts` (each becomes a custom-JavaScript element — a .js file, an external `src` include, or verbatim `<script>` markup, each with its own name and placement), and a required `variant_name`. Referenced images and fonts are rehosted as client-owned Unbounce assets and the markup rewritten to the resulting CDN URLs (relative refs resolve against the HTML file's folder in the same upload bundle; large data URIs are extracted; external `http(s)` URLs are left untouched). Reference an existing asset's `cdn_url` from list_assets to reuse it instead of uploading a duplicate — uploaded assets are deduplicated against the client's library too.

A `<form>` in the HTML is automatically wired for lead capture, pointed at Unbounce's submission gateway. It must be well-formed — one `<form>` with named fields and a submit button, no `pageId`/`pageVariant` fields, no `onsubmit`/`onclick` handlers — or the call fails listing every issue. Submission belongs to the Unbounce runtime: no script (inline or in `scripts`) may listen for `submit`, POST to `/fsg`/`/fsn`/`/fs` or the form's `action` itself, or assign to a `window.ub.hooks` array — the call rejects those too (a hand-rolled POST is flagged as spam; remote `src` includes are not inspected). A successful submit shows a default "Thank you!" confirmation dialog; to customize the post-submit experience (message, redirect, hiding the form, mirroring the lead to a webhook), `.push` a callback onto `window.ub.hooks.afterFormSubmit` in a `scripts` entry or an inline `<script>` in the body HTML, which suppresses the default dialog.

The new variant is added as a CHALLENGER and STAGED: it takes no traffic until set_traffic gives it a share, and nothing goes live until publish_page. Adding a variant runs an A/B test, a paid feature — the call is rejected up front if the account isn't entitled (check with get_account_plan). Dynamic Text Replacement (`<ub:dynamic>`) is a paid feature too, gated the same way. File bytes are read server-side and never pass through this conversation. Returns the page uuid, the client `context`, a `variant` object (numeric `id`, `letter` a/b/c, and `standing` — normally `challenger`, or `discarded` with a note if it couldn't be promoted), and the list of created assets.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `js_refs` | string | No | REMOVED — renamed to `scripts`, which also accepts external includes, a name, and a placement. Passing it is an error: move the upload:// references into `scripts`. |
| `scripts` | array | No | The variant's custom-JavaScript elements. Each entry is either a bare upload:// reference string (a .js file injected before the closing body tag, named after the file) or an object with exactly one of `ref` (a .js file), `src` (an absolute http(s) URL to include — a popup or other third-party embed), or `tag` (verbatim <script> markup), plus optional `name`, `placement` (head / body_top / body_bottom), and — for `src` only — `async` / `defer`. |
| `css_refs` | array | No | Optional upload:// references to CSS files, concatenated in order into the variant stylesheet. |
| `html_ref` | string | Yes | upload:// reference to the body-content HTML for the variant (stored in the Custom HTML element). Provide body-ready markup, not a full <html> document. |
| `page_uuid` | string | Yes | The pageUuid of the page to add the variant to (from list_client_pages). |
| `variant_name` | string | Yes | Name for the new variant (required). |
| `check_external_refs` | string ("fatal" | "warn" | "off") | No | How to handle external (http(s)) references that survive rehosting and don't resolve. `fatal` (default): a dead Unbounce-hosted asset URL (which would abort publish) fails the call before the variant is minted; dead third-party URLs are returned as warnings. `warn`: never block. `off`: skip the reachability check entirely. |

### Delete page

**Slug:** `UNBOUNCE_MCP_DELETE_PAGE`

Delete an Unbounce page by its `page_uuid` (from list_client_pages) — deletes one page per call.

The page stops serving and disappears from the account immediately, with no publish step. There is NO restore through these tools or the Unbounce app: the platform soft-deletes, and only Unbounce Support can recover a deleted page, on request. To take a page offline reversibly, use unpublish_page instead. Returns `{ ok: true, page_uuid, … }` on success, or `{ ok: false, code, reason, remedy }` so you can correct the inputs and retry.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |

### Delete page group

**Slug:** `UNBOUNCE_MCP_DELETE_PAGE_GROUP`

Delete a client's page group (a named folder), by `group_uuid` from list_page_groups.

Only the group is removed — its pages are NOT deleted; they remain and still appear under "All Pages". Use manage_page_group with remove_pages first if you only want to take pages out of a group without deleting it. Returns `{ ok: true, group_uuid, … }` on success, or `{ ok: false, code, reason, remedy }`.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group_uuid` | string | Yes | The group_uuid from list_page_groups. |

### Delete variant

**Slug:** `UNBOUNCE_MCP_DELETE_VARIANT`

Permanently delete one of an Unbounce page's variants, by `page_uuid` (from list_client_pages) and variant `letter` a/b/c (from list_page_variants). This is the HARD removal — the variant and its history are gone and CANNOT be recovered.

To pull a challenger out of the test reversibly (keeping it), use set_variant_standing with standing `discarded` instead. The deletion is STAGED in the page's draft and only takes effect when the page is (re)published (publish_page). Returns `{ ok: true, … }` on success, or `{ ok: false, code, reason, remedy }` so you can correct the inputs and retry.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `variant` | string | Yes | The variant letter (e.g. "a", "b") from list_page_variants. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |

### Download

**Slug:** `UNBOUNCE_MCP_DOWNLOAD`

Download objects from your server-side workspace WITHOUT routing their bytes through this conversation.

Pass the `upload://<handle>/<relpath>` references returned by `upload`. Returns one temporary download URL per reference; run the printed `curl -o <localfile> '<download_url>'` for each (no auth header needed — auth is baked into the URL). The bytes stream straight from storage to disk, never through the model. Can't run shell/curl? Use `download_inband` instead (small text files only).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `refs` | array | Yes | The `upload://<handle>/<relpath>` references to fetch (1–50), as returned by `upload`. |

### Download inband

**Slug:** `UNBOUNCE_MCP_DOWNLOAD_INBAND`

Read objects from your server-side workspace, returning their content INLINE in this tool's result. Use this ONLY if you cannot run shell/`curl` commands locally; if you can, prefer `download`, which streams the bytes to disk without passing them through this conversation.

Pass the `upload://<handle>/<relpath>` references returned by `upload`, `upload_inband`, or `get_variant`. Only small text objects can be returned this way — a binary object (image/font) or one over 2 MiB is refused, with guidance to use `download` instead. Any refused reference fails the whole call, so retry with just the good ones.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `refs` | array | Yes | The `upload://<handle>/<relpath>` references to read (1–50), as returned by `upload`, `upload_inband`, or `get_variant`. |

### Edit ai builder page

**Slug:** `UNBOUNCE_MCP_EDIT_AI_BUILDER_PAGE`

Make targeted changes to an existing AI Builder page's variant — insert, update, delete, retext, restyle or move components, or set the page theme — without re-authoring the whole document. Read the page with get_ai_builder_document first to see its components.

`operations` (1 to 50) run in order as ONE atomic batch: if any operation cannot be applied, nothing is written and the error names the operation's index. Each names components by `{ id }` (attributes.id — it must match exactly one component; few components carry one) or `{ path }` (the position, e.g. `pages[0].frames[0].component.components[2]`, as the document and validation errors show it). A path is resolved against the document as earlier operations in the batch left it.
- `insert { parent?, at?, component }` — add a component object (default parent: the first page's root; default position: last). Its inline `style` (on any component in it, or in their `attributes`) is moved, values unchanged, into each one's own `#id` rule; a component without an attributes.id is given one, reported in `generated_ids`. An attributes.id another component already carries is refused (`duplicate-id`).
- `update { target, attributes?, classes?: { add?, remove? }, components? }` — merge attributes (null removes one), add/remove classes, or replace ALL children.
- `delete { target }`.
- `update_text { target, text }` — plain text of a text node, of a component whose content is text, or of a component with a single text node child. On a component that shows its text in a descendant (a link button's label, a form button's editable child), it sets that descendant.
Many components render visible values from their own `data-*` attributes (a button's text from `data-label`, an accordion's question from `data-question`, an image's alt from `data-alt`), and the AI builder rebuilds those values from the attributes whenever it loads the page. So an edit keeps the two in step: changing a rendered value also sets the `data-*` attribute on the node or its component ancestors that held the old value, and setting a `data-*` attribute also sets the text and attributes beneath it that held the old value. Every value changed this way is listed in `synced`. When two `data-*` attributes on one component hold the same value, which one the text comes from cannot be told, so the edit is refused; set the attribute you mean together with its text, using `update` with both `attributes` and `components`. Values an attribute stores as a list (pricing features, breadcrumb items, tabs, social links) are not matched: change those by setting the attribute with `update`. Setting a `ub-pricing-card`'s `data-features` rewrites the items of its own `ul.ub-pricing-card__features` (one `li.ub-pricing-card__feature` per `|`-separated entry, the entry being its markup, as in the editor), listed once in `synced`; the old value is not matched elsewhere. A card with no such container is left as it is and named in `warnings`. Setting a `ub-form-button`'s `data-label` also sets its `text`, which is what the published page shows, and its `aria-label`; removing it clears both. An `insert` gets the same treatment, and `warnings` also names an inserted component of a type with `data-*` traits whose children carry none of the classes its catalog default children carry, which the AI builder cannot update from its traits. Warnings do not stop the edit.
- `update_style { target, style }` — merge CSS into the component's own `#id` style rule; a component without an attributes.id is given one, reported in `generated_ids`. Set colours and fonts with the style guide's `var(--…)` variables: a literal colour is for a one-off accent only, and a literal font family is never right.
- `reorder { target, to, at? }` — move a component under `to` at position `at`.
- `set_theme { theme }` — set the page's theme: brand colours, fonts and other style-guide variables for the whole page, as the AI builder's theme panel sets them (it shows each as Custom). `theme` maps variables from get_ai_builder_catalog's `style_guide.themeable` to values and is merged over the page's current theme; every component styled with `var(--…)` follows. Setting a palette's base colour (`--brand`, `--ub-color-secondary`, `--ub-color-accent`, `--ub-color-text`, `--ub-success`, `--ub-warning`, `--ub-danger`) as a `#` hex also sets its five-step series and moves the colours that still follow it (buttons, links, form focus), as the AI builder does, unless the batch sets those itself; these are listed in `theme_derived`. Give a palette colour as `#` hex or `rgb()`: any other form (a colour name, `hsl()`) is written but moves nothing, and `theme_warnings` says so. A `null` value undoes a theme value: the variable goes back to its style-guide default (a palette colour's series and followers move back with it), and get_ai_builder_document's `theme` no longer lists it. A font variable takes a Google Fonts family from the AI builder's catalogue (or a generic or system family), and its web font is declared for loading. An unknown variable or family is refused (`invalid-theme`). Use it, not literal values, to change a brand colour or font.
Components are objects, never HTML strings; use get_ai_builder_catalog for valid types and style variables.

The edited document is validated against the client's catalog and style guide before anything is written (`limits` names what that check does not cover). An event-handler attribute (`on*`) or `javascript:` URL the batch adds is refused; one the page already carried is left alone. To run code, use set_ai_builder_custom_code. Custom-code slot content the page did not already have is refused; an edit keeps the slots the page already had, unchanged. A script component is not a slot and is still accepted. Then the page as it was is saved as a restore point in the variant's version history (`snapshot_version_id`), and the edit is saved against the version you read.

`version_id` is required: pass the one get_ai_builder_document returned with the document you planned the operations against. If the variant has been saved since — in the Unbounce AI builder or by another call — the edit fails as a `conflict` and nothing is written, because paths and replacements from your read may no longer mean what you intended. Re-read with get_ai_builder_document, re-plan against what is there now, and retry with its `version_id`. A successful edit returns the new `version_id`, so a further edit can follow without re-reading.

`variant` is the variant letter and defaults to `a`. The page stays editable in the Unbounce AI builder; the Classic HTML tools do not apply to it. This does not publish the page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `context` | string | Yes | The numeric client (sub-account) id that owns the page — `context` from list_page_variants, or the client's numeric id from list_accounts_and_clients. |
| `variant` | string | No | The variant letter to edit (default "a"). |
| `page_uuid` | string | Yes | The AI Builder page's uuid, from list_client_pages with builder: "ai_builder". |
| `operations` | array | Yes | The edits, applied in order as one atomic batch (1 to 50). |
| `version_id` | string | Yes | The `version_id` of the read the operations were planned against: from get_ai_builder_document, or from the previous edit_ai_builder_page result. The edit is refused as a `conflict` if the variant has been saved since. |

### Get account plan

**Slug:** `UNBOUNCE_MCP_GET_ACCOUNT_PLAN`

Return an Unbounce account's plan (name, billing interval) and subscription (renewal date, price with currency). Defaults to the authenticated user's primary account; pass `accountUuid` (from list_accounts_and_clients) to target a specific accessible account.

`plan` and `subscription` come back null when your role can't see billing details — visible only to an Account Owner or Administrator, null for Authors and Viewers. That's a normal result, not an error.

`builders` says whether the plan includes AI Builder (`ai_builder`) and the Classic Builder (`classic`): true, false, or null when it could not be read. Every role can read it; it is the same block list_accounts_and_clients returns per account.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `accountUuid` | string | No | The accountUuid (from list_accounts_and_clients) to look up. Omit to use your primary account. |

### Get ai builder catalog

**Slug:** `UNBOUNCE_MCP_GET_AI_BUILDER_CATALOG`

Return what you need before authoring an AI Builder page: the component types you may use, and the client's resolved style guide. Call it first — the catalog is versioned and owned by the AI Builder team, so authoring against a remembered list eventually emits components that no longer exist.

`components` is a projection — `type`, `name`, `category`, `description` — because the full catalog runs to hundreds of kilobytes and choosing a component needs none of it. Then call again with `component_types` for the definition (traits, defaults, default children) of the ones you intend to use. That call returns `component_details` alone, without the list or the style guide you already have. Details are capped at a size a client can take in one result: any requested type that did not fit is named in `deferred_component_types` — call again with those. A component's own CSS is left out unless `include_styles` is true, and its runtime script and icons always are: the editor adds all three to the page itself. Unpaginated: the catalog is a small fixed set, returned whole (`component_count` says how many), like list_page_variants — there is no `next_after` to follow.

Many components rebuild their visible text from their own `data-*` traits each time the AI builder loads the page: `ub-button` and `ub-link-button` from `data-label`, `ub-stat-item` from `data-value` and `data-label`, `ub-accordion-item` from `data-question` and `data-answer`, `ub-testimonial-card` from `data-quote`, `data-author` and `data-role`, `ub-pricing-card` from `data-plan` and `data-price`, and the form fields from `data-label` and `data-placeholder`. Set the trait AND write children that say exactly the same thing: the builder's rebuild then changes nothing, and the published page, which shows the stored children, carries the content. Never write children that disagree with the trait. Give the children the structure and classes of the type's default children in `component_details` (a `ub-stat-item`'s `span.ub-stat-item__value` and `span.ub-stat-item__label`): the builder finds them by those classes, and the write tools warn about children that carry none of them. Two exceptions: `ub-form-button` takes `data-label` and no children, or its label renders twice (the write tools set its `text`, which is what publishes, from `data-label`); and a list-encoded trait (`data-features` on `ub-pricing-card`, `data-links` on a navbar or footer) holds every item in one value, so its children render one item each, never the whole trait string, and an item is changed by setting the whole trait with `update`. For `data-features` the write tools build the items of the card's `ul.ub-pricing-card__features` from the trait, so write that container; each entry is published as markup and may hold only text and the inline formatting elements b, i, em, strong, u, s, small, sub, sup, mark, code, br and span, with no attributes; anything else (a link, an image, an attribute) refuses the write.

`style_guide` carries the client's brand as CSS custom properties (`variables`) plus the `style_guide_id` to pin at page creation, and `resolved_from` saying whether it came from the client, the account, or Unbounce's default. **Author within these variables rather than hard-coding colours and fonts** — inline values survive neither a rebrand nor the theme editor in the Unbounce AI builder. `themeable` names the variables a page theme can set (each one's style-guide default is its value in `variables`): when the user names brand colours or fonts, set them through create_ai_builder_page's `theme` or edit_ai_builder_page's `set_theme`, never as literal values. A literal colour is for a one-off accent only; never write a literal font family.

An account whose plan lacks AI Builder (`builders.ai_builder` false in list_accounts_and_clients) is refused before anything is read, naming create_page_from_html as the route to take instead.

Every account that can use AI Builder gets the full catalog and a style guide — Unbounce's default when the account has configured none. If the style-guide read fails, `style_guide` comes back `null` with `style_guide_unavailable` naming the HTTP status while the components are fine. You can still author without it; the page just won't match the account's brand. A 5xx there may be transient, so retrying the call is reasonable.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `context` | string | Yes | The numeric client (sub-account) id to read the catalog and style guide for — the client's numeric id from list_accounts_and_clients. |
| `include_styles` | boolean | No | Also return each detailed component's own CSS (`model.defaults.styles`). Off by default: it is large and the editor adds it to the page itself. |
| `component_types` | array | No | Component types (e.g. `ub-section`, `ub-columns`) to return in full detail under `component_details`, in the order given. The result then carries only the details; types past its size cap come back in `deferred_component_types` for another call. |

### Get ai builder document

**Slug:** `UNBOUNCE_MCP_GET_AI_BUILDER_DOCUMENT`

Return the current editor document of an AI Builder page's variant, by `page_uuid` (from list_client_pages with `builder: "ai_builder"`) and the numeric `context` (the owning client's id). The document is the page itself: a component tree plus its style rules, the same representation the Unbounce AI builder reads and writes.

`variant` is the variant letter and defaults to `a`; list_page_variants names a page's variants.

The result also carries `version_id` — the version the document was read from. A later write should send it back so the save is refused if someone edited the page in the meantime, rather than silently overwriting their work. It is absent when the variant has never been saved, and can be absent if the backend stops exposing it, so treat its absence as 'cannot take part in the conflict check', never as a reason to skip the read. `updated_at` rides alongside it, so you can say how stale a copy is rather than only whether it is stale.

`custom_code` is the variant's three custom-code slots (`head`, `before_body_end`, `after_body_tag`), read from the stored document in either view, so a paged components view cannot hide them. Write them with set_ai_builder_custom_code; pass a slot back to leave it unchanged.

`view` defaults to `components`: the document without the editor's own bookkeeping — the style guide's data source, the `:root` rule binding its variables, the copies of each component's catalog CSS, the editor's interaction flags (`removable`, `draggable`, `selectable` and the like; `locked` is kept), `data-ub-type` attributes that repeat a node's `type`, and the drawing inside each `svg` node — most of a saved document and none of it authored. `omitted` counts what was left out.

Both views carry `theme`: the theme values the page overrides, the ones the AI builder's theme panel shows as Custom, each style-guide variable mapped to `{ value, default }` — the value it renders and the style guide's default it replaces. A variable at its default is not listed; its value is the style guide's (`style_guide` in get_ai_builder_catalog). Change it with edit_ai_builder_page's `set_theme`, not by editing `dataSources` or the `:root` rule. It is empty for a page that overrides no theme value.

The components view is paged by **section** (the components directly under a page's root, such as a navbar, a hero or a footer) so a result stays a size a client can take. Sections not in this page are stubs with `omitted_section: true` and their `type` and id, never removed, so every path is the same as in the full document. `total` is the number of sections and `sections` the range returned in full; when `next_after` is present, pass it as `after` for the next sections, and stop when it is absent. To read one section, pass its index as `after` with `first: 1`.

Pass `view: "full"` for the document exactly as stored, unpaged; it can run to hundreds of kilobytes. edit_ai_builder_page reads the whole document itself, so edits planned against either view behave the same; style-variable names are in get_ai_builder_catalog.

The result carries `conversion_goals` on a full view and on the first page of a components view (no `after`, or `after: 0`): the variant's stored `active` goals (`pages[0].settings.activeGoals`) and the `candidates` a set_conversion_goals call can enable, each flagged `active`. The block is the whole page, not one section. A later page omits it and does not read the component catalog.

This is the AI Builder counterpart of get_variant, which reads Classic pages and does not work here — the two builders store pages in entirely different ways.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `view` | string ("components" | "full") | No | "components" (default): the document without the editor's bookkeeping, paged by section. "full": exactly as stored, unpaged. |
| `after` | integer | No | Components view only: sections to skip, in document order — the `next_after` of the previous call. Defaults to 0. |
| `first` | integer | No | Components view only: the most sections to return in full. The result's size budget applies either way, so fewer may come back; `next_after` says where to continue. |
| `context` | string | Yes | The numeric client (sub-account) id that owns the page — `context` from list_page_variants, or the client's numeric id from list_accounts_and_clients. |
| `variant` | string | No | The variant letter to read (default "a"). |
| `page_uuid` | string | Yes | The AI Builder page's uuid, from list_client_pages with builder: "ai_builder". |

### Get ai builder render

**Slug:** `UNBOUNCE_MCP_GET_AI_BUILDER_RENDER`

Check what an AI Builder page's variant actually renders to, by `page_uuid` (from list_client_pages with `builder: "ai_builder"`) and the numeric `context` (the owning client's id). `variant` is the variant letter and defaults to `a`.

Read-only: it renders the variant's **current saved version** — what create_ai_builder_page or edit_ai_builder_page last wrote, published or not — and changes nothing. It does not publish and does not save a version. It is not the live page: on a published page saved since its last publish, it renders the newer save, which visitors do not see until the page is published again.

Use it after a create or edit, whose validator cannot say whether a document renders. `renders` is `true` when the page rendered, with its `title`, its h1–h3 `headings`, its visible `text` and an `html_excerpt` of the body markup (scripts and styles removed; `stripped` counts what was taken out). The result is capped at 40,000 characters: `truncated` says something was cut to fit (`text_truncated` and `headings_truncated` say which besides the excerpt), and `html_chars_total` is the excerpt's full length. Placeholders such as `{UB:PAGE_ID}` are filled in only when the page is published.

`renders: false` with a `reason` means the backend could not render the variant. It does not say why: the cause may be the page — a broken document, or a linked style guide with no published version — or a passing backend fault. Retry once; if it still fails, check the document with get_ai_builder_document, fix it with edit_ai_builder_page and check again. A variant that has never been saved is an error (`not-saved`), not a failed render.

There is no screenshot and no preview link: this checks the markup and text, not the look.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `context` | string | Yes | The numeric client (sub-account) id that owns the page — `context` from list_page_variants, or the client's numeric id from list_accounts_and_clients. |
| `variant` | string | No | The variant letter to render (default "a"). |
| `page_uuid` | string | Yes | The AI Builder page's uuid, from list_client_pages with builder: "ai_builder". |

### Get layout hints

**Slug:** `UNBOUNCE_MCP_GET_LAYOUT_HINTS`

Analyze an MCP-managed variant's rendered layout into a structural skeleton — top-to-bottom sections, each with `rows` of element ids clustered left-to-right — for rewriting an absolutely-positioned page as responsive HTML (flex/grid). Identify the variant by page_uuid (from list_client_pages) and letter (from list_page_variants); use the rows as the flex/grid skeleton instead of translating absolute coordinates.

Also returns per-element geometry, `cross_section_overlays` (elements whose vertical span crosses into later sections — reserve their column in every section they span, or that section's content hides behind them), and `design_width` (the fixed canvas width content is pinned to). It includes fidelity signals measured from the rendered page — treat these as ground truth, never re-derive or assume them: `page_defaults` (body text color, background, and typography — the baseline everything else deltas against), per-section `background_color`/`background_image` (with natural size, so a decorative accent reads differently from a full-bleed cover), per-element `color`/`typography` (measured on the element's dominant text node, so it describes what actually renders rather than the container's inherited defaults; both are omitted when an element paints no text of its own), plus `text_colors` (multi-color text), `secondary_typography` (a second distinct type style, e.g. heading + body copy), `text_excerpt`/`text_length`, `images` (exact src, natural and rendered size), `links` (exact href), `row_stats` (columns, alignment, vertical gaps), `content_extent` (natural content-column width), `palette` (every color on the page with usage counts — authored CSS should introduce no color outside it), `loaded_fonts`, and `hidden_elements` (present in the source but not rendered — preserve, don't surface).

Meaningful only for variants imported from an existing Unbounce page via create_variant_from_existing_variant, which carry an absolutely-positioned tree; a variant authored as responsive HTML returns an empty structure. Pages built in the Unbounce builder aren't analyzable directly — import them first. Rendering takes a few seconds.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `letter` | string | Yes | The variant letter (a/b/c) from list_page_variants. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages (the page that owns the variant). |

### Get page stats

**Slug:** `UNBOUNCE_MCP_GET_PAGE_STATS`

Return a page's A/B stats — page-level totals plus a per-variant breakdown of `visits`, `visitors`, `conversions`, and `conversion_rate` — by `page_uuid` (from list_client_pages). Also includes each variant's `conversion_rate_delta` and statistical `confidence`.

Numbers are all-time cumulative since the last reset by default (see reset_page_stats); pass `start_date`/`end_date` (RFC 3339 UTC timestamps) to narrow to a period. `visits` sum exactly across adjacent windows, but `visitors`/`conversions` are visitor-deduplicated and attributed to the period where first counted, so a narrow window can show fewer than the events inside it; no window reaches data zeroed by a reset.

`conversions` counts conversion-goal hits deduplicated per visitor — NOT the number of form submissions (the two totals legitimately differ). Every variant comes back in one response (no paging), and `last_reset_at` is the last reset's timestamp, or null if never reset. Errors if the page isn't found or accessible.

Works the same for pages from any builder. A page with no traffic recorded yet has no per-variant breakdown: `variants` is then empty and a `variants_unavailable` note says so.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end_date` | string | No | Only count activity before this instant (RFC 3339 timestamp). Omit for up-to-now. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |
| `start_date` | string | No | Only count activity from this instant on (RFC 3339 timestamp, e.g. 2026-06-01T00:00:00Z). Omit for since-the-beginning (or last reset). |

### Get variant

**Slug:** `UNBOUNCE_MCP_GET_VARIANT`

Read an MCP-managed variant's current draft content — body HTML, CSS, and JavaScript — so you can inspect it or edit it and re-submit with update_variant_from_html. Identify the variant by page_uuid (from list_client_pages) and letter (a/b/c, from list_page_variants). This is a read: nothing on the page or in the account changes.

Returns the editable source as html_ref / css_refs references plus a `scripts` array (one entry per custom-JavaScript element: a `ref` to an editable .js file, an external `src` include, or verbatim `tag` markup) — pass them straight back to update_variant_from_html. The references point at a private, auto-expiring copy of the draft that exists only to carry the result (the same upload:// form the upload tool returns), so the bytes never pass through this conversation. This is DRAFT (editor) content, which may differ from what's published if the variant has unpublished changes. Also returns the variant's conversion_goals (the configured goal set plus candidates) and its metadata (SEO title/description/keywords, robots noindex, favicon, Open Graph — settable via set_page_metadata). The source refs are streams and do NOT render individually in a browser — for a local preview, use the also-returned preview_ref: a standalone preview.html composed for viewing (fetch it with download or download_inband). preview.html is view-only; never submit it back as html_ref.

Source is returned for MCP-managed variants only — for a variant hand-built in the Unbounce builder the result degrades to is_mcp_managed:false with its conversion_goals and metadata (both readable for any variant), an autoscale flag (true when the Classic page scales a fixed-width design to the viewport rather than reflowing per breakpoint), and no source refs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `letter` | string | Yes | The variant letter (a/b/c) from list_page_variants. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages (the page that owns the variant). |

### List accounts and clients

**Slug:** `UNBOUNCE_MCP_LIST_ACCOUNTS_AND_CLIENTS`

Return the Unbounce accounts the authenticated user can access, each with its clients.

Each account carries `builders`: whether its plan includes AI Builder (`ai_builder`) and the Classic Builder (`classic`), each true, false, or null when it could not be read. Choose the route for a new page from it: AI Builder (get_ai_builder_catalog, create_ai_builder_page) unless `ai_builder` is false, Classic HTML (create_page_from_html) when it is. Both false means the plan includes neither of these builders, so neither create tool can make a page.

Calls the Unbounce API on the caller's behalf.

### List assets

**Slug:** `UNBOUNCE_MCP_LIST_ASSETS`

Return a client's asset library — uploaded images and files — by the client's numeric `context` (from list_page_variants' `page.context`, or a clientId). Each asset carries its numeric `id`, `uuid`, `name`, `content_type`, `file_size`, and a servable `cdn_url`.

Drop a `cdn_url` straight into the HTML/CSS passed to create_page_from_html / create_variant_from_html / update_variant_from_html to reuse that asset without uploading a duplicate (external URLs pass through untouched). Returns metadata and URLs only, never the file bytes. Listing appears to require an author role on the client — a client you can list pages for may still be denied here (HTTP 403).

Paginated by `after`, but not the standard first/total contract: this backend returns a bare array with a fixed page size and no total count. Omit `after` for the first page; if the response includes `next_after`, pass it back as `after` for the next page, and keep going until `next_after` is absent.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | integer | No | Pagination offset, in multiples of 25. Omit (or 0) for the first page; pass the `next_after` returned by a prior call for the next. |
| `context` | string | Yes | The numeric client (sub-account) id whose assets to list. MCP requests must name an explicit, permitted client — there is no default. |

### List client domains

**Slug:** `UNBOUNCE_MCP_LIST_CLIENT_DOMAINS`

List the custom domains a client owns, by `client_uuid` (from list_accounts_and_clients).

Returns `{ domains: [{ name, state, is_default, certificate_status }], total }`. `name` is the domain string a page can be published on (see set_page_url); `state` is `ok`, `moving`, or `move_error`; `is_default` marks the account's default domain; `certificate_status` is SSL readiness (`ok` means the domain serves HTTPS). The list is complete (unpaginated); an empty list means the client has no domains, not an error.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `client_uuid` | string | Yes | The client UUID (clientUuid) from list_accounts_and_clients. |

### List client pages

**Slug:** `UNBOUNCE_MCP_LIST_CLIENT_PAGES`

Return a client's landing pages, by `client_uuid` (from list_accounts_and_clients), with optional server-side filters and sort. Each page carries its `pageUuid` (feed to list_page_variants), numeric `pageId`, `name`, `url`, `state`, an unpublished-changes flag, last-published timestamp, `routing_strategy` (`smart_traffic` / `weighted` / `single` — the authoritative traffic mode; omitted if unset), and `routing_config` naming the variant letters in play for that mode (the allocation letters for smart_traffic; `champion` + `weights` for weighted; the serving `variant` for single).

For a page's variants and their traffic split, call list_page_variants with the `pageUuid` — a per-page variant count isn't returned here because the platform's own count is unreliable for pages under an A/B test.

Paginated: `total` is the full post-filter count, and `next_after` (when present) is the offset to pass as `after` for the next page; page until it's absent. Under the default `classic` scope, an empty list means no matching pages, not an error.

`builder` selects which builders to list — `classic` (the default), `ai_builder`, or `any` for both. Only Classic can be filtered upstream, so the other two scopes are narrowed by this server after fetching, which changes the paging contract: **`total` is absent** for them (the upstream count covers the wider, unnarrowed set and would overstate what came back), and `next_after` becomes a full-slice heuristic — present whenever the upstream returned a full page, meaning more *may* remain. Page until it is absent. Under `ai_builder` or `any`, an empty slice that still carries `next_after` means keep paging — that slice held none of the requested builder; an empty slice with no `next_after` means no matching pages, not an error. Each of those pages also carries `builder`. Smart Builder pages are never listed under any scope: no tool here can act on one.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | integer | No | Offset into the full list, for paging (pass `next_after` from a prior call). |
| `first` | integer | No | Page size: cap the number of pages returned (default 50). |
| `builder` | string ("classic" | "ai_builder" | "any") | No | Which builders to list: `classic` (default — Classic Builder pages, the only scope filtered upstream), `ai_builder` (AI Builder pages), or `any` for both. Non-default scopes drop `total` and make `next_after` a heuristic — see the tool description. |
| `order_by` | object | No | Server-side sort. Both `sort` and `direction` are required when given. |
| `published` | boolean | No | Return only published (true) or only unpublished (false) pages. |
| `client_uuid` | string | Yes | The clientUuid (sub-account uuid) from list_accounts_and_clients. |
| `name_contains` | string | No | Return only pages whose name contains this substring (server-side search). |
| `routing_strategy` | string ("smart_traffic" | "weighted" | "single") | No | Return only pages using this traffic-routing strategy: `smart_traffic` (Smart Traffic / dynamic allocation), `weighted` (A/B split), or `single` (one variant). |
| `integration_errors` | boolean | No | Return only pages that have lead-integration errors (true) or only pages with none (false). |

### List page groups

**Slug:** `UNBOUNCE_MCP_LIST_PAGE_GROUPS`

List the page groups (named folders for organizing pages) a client uses, by `client_uuid` (from list_accounts_and_clients).

Returns `{ groups: [{ group_uuid, group_id, name, page_count }], total }`. Use `group_uuid` with manage_page_group and delete_page_group. The list is complete (unpaginated); an empty list means the client has no custom groups. The UI's "All Pages" view is not a real group and is never listed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `client_uuid` | string | Yes | The client UUID (clientUuid) from list_accounts_and_clients. |

### List page variants

**Slug:** `UNBOUNCE_MCP_LIST_PAGE_VARIANTS`

Return a page's variants (by `page_uuid` from list_client_pages), ordered champion, then other active variants, then discarded. Works on Classic Builder landing pages (not AMP) and AI Builder pages; anything else — AMP, Smart Builder, popups, sticky bars — is refused, as no tool here can act on one, and the error names the type it actually got.

On an **AI Builder** page, `variant_id` and `preview_url` are **absent**: the platform reports the numeric id as `0` for every variant of such a page, so it identifies nothing and the preview link it builds cannot work. To check what an AI Builder variant renders to, use get_ai_builder_render with its `letter`. Identify those variants by `letter`, and note the page-editing tools that take a `variant_id` are Classic-only regardless. Their `standing` comes from the page's traffic settings (a variant in `routing_config` is live, one outside it is discarded), because the platform reports every AI Builder variant's `state` as `testing`. So a variant you just created reads as `discarded` until it is given traffic (set_variant_standing to `challenger`, or set_traffic), as it does in the Unbounce app.

Each variant carries its numeric `variant_id` (Classic only — see above; the id the page-editing tools take), its `letter` (a/b/c label), name, its stored SEO `title` and `description` (metadata is per-variant and unsynced, so divergence shows here at a glance — set with set_page_metadata, full set via get_variant), its `standing` (champion/challenger/discarded — the same vocabulary set_variant_standing takes, so you can round-trip without translating), the raw platform `state` (testing/paused/untested/discarded), traffic `weight`, `is_champion`, `has_conversion_goal` (whether the platform counts anything as a conversion on it — get_variant returns the goal definitions themselves), and a `preview_url`. The `page` block includes `context` (the owning client's numeric id the page-editing tools require) and `routing_strategy` (`smart_traffic` / `weighted` / `single`), the authoritative traffic mode: under `smart_traffic` the platform allocates dynamically, so a variant's `weight` is the stored split, NOT the live allocation — do not infer an A/B test from weights alone. `routing_config` names the variants in play for that mode (the letters in the Smart Traffic allocation; the `champion` + per-variant `weights` for a weighted test; the serving `variant` for single). `routing_strategy` and `routing_config` are both omitted when the page has no routing strategy set.

`preview_url` opens that variant's staged rendering in the Unbounce app for a human to review (not edit) — it requires the viewer's own Unbounce session, so it is NOT a public URL and cannot be fetched or screenshotted by the agent. `include_discarded` defaults to true; set false to return only the live set (`discarded_count` is reported either way). Errors if the page isn't found/accessible, or isn't a landing page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |
| `include_discarded` | boolean | No | Include discarded variants in `variants` (default true). Set false to return only the live set; `discarded_count` is reported either way. |

### Manage page group

**Slug:** `UNBOUNCE_MCP_MANAGE_PAGE_GROUP`

Create, rename, or change the membership of a client's page groups — named folders for organizing pages.

Pick an `action`: `create` (needs `client_uuid` + `name`), `rename` (needs `group_uuid` + `name`), `add_pages` or `remove_pages` (needs `group_uuid` + `page_uuids`, and `remove_pages` leaves the pages themselves untouched). Discover ids with list_accounts_and_clients, list_page_groups, and list_client_pages. Groups are pure organization — changes take effect immediately, no publish step — and a page can belong to several groups at once (add_pages is additive, not a move); to delete a group entirely, use delete_page_group.

`create` is a get-or-create: the backend enforces no name uniqueness, so a same-named group already existing is returned instead of duplicated (`already_existed: true`). `add_pages`/`remove_pages` report any `skipped` page_uuids the backend couldn't resolve (not found, not accessible, or not a Classic/CCP page) without failing the rest. Group names are capped at 20 characters and can't be blank. Returns `{ ok: true, … }` on success or `{ ok: false, code, reason, remedy }`.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Required for `create` / `rename`: the group name (max 20 characters). |
| `action` | string ("create" | "rename" | "add_pages" | "remove_pages") | Yes | create = new group (client_uuid + name); rename = rename a group (group_uuid + name); add_pages / remove_pages = change membership (group_uuid + page_uuids). |
| `group_uuid` | string | No | Required for `rename` / `add_pages` / `remove_pages`: the group_uuid from list_page_groups. |
| `page_uuids` | array | No | Required for `add_pages` / `remove_pages`: the page UUIDs (pageUuid) from list_client_pages. |
| `client_uuid` | string | No | Required for `create`: the client UUID from list_accounts_and_clients. |

### Manage page redirect

**Slug:** `UNBOUNCE_MCP_MANAGE_PAGE_REDIRECT`

Set or clear a page's redirect (by `page_uuid` from list_client_pages). A redirect forwards visitors from the page's own URL to another URL — the page stops serving its content, so this is how you retire or forward a published page without deleting it.

Pass an absolute `redirect_url` to forward visitors there, replacing any existing redirect, with an optional `status_code` (301 permanent, the default — for retiring/replacing a page for good, so search engines transfer the old URL's ranking to the target; 302 temporary — the original URL keeps its equity). Pass `redirect_url: null` to clear the redirect so the page serves its own content again. Applies IMMEDIATELY — no publish step — and is reversible.

This does NOT preserve a page's old URL after set_page_url: a redirect attaches to a page at its current URL and points away, so it can't resurrect an already-orphaned URL. Returns `{ ok: true, page_uuid, ... }`.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |
| `status_code` | string | No | With a `redirect_url`: 301 (default) means the page moved permanently — use it when retiring, replacing, or migrating a page for good, so search engines transfer the old URL's ranking and link equity to the target. 302 means the page moved temporarily (the original URL keeps its equity). |
| `redirect_url` | string | Yes | The absolute URL to forward visitors to (e.g. `https://example.com/new`), or `null` to clear the redirect. |

### Publish page

**Slug:** `UNBOUNCE_MCP_PUBLISH_PAGE`

Publish a Classic landing page or an AI Builder page (by `page_uuid` from list_client_pages), making its current draft state the served version.

Publishing is the commit step: content and traffic/routing changes made by other tools stage as draft and only take effect once the page is (re)published. The publish is asynchronous — this tool polls briefly and reports `done:true` with `state:"published"` once the page settles, or `done:false` with the in-progress state and a note to re-check later.

Publishing deletes nothing: the draft stays editable afterwards, repeated publishes settle to the same `published` state, and unpublish_page takes the page offline again.

An AI Builder page is checked before anything is published: it must have at least one variant in its traffic routing, and every such variant must have saved content. A page that fails either check is refused with an error naming the cause and the variants concerned, and is left untouched. If the check itself cannot be completed, the publish is not sent.

Errors if the page isn't found, is neither a Classic landing page nor an AI Builder page, or can't be published.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |

### Recipes

**Slug:** `UNBOUNCE_MCP_RECIPES`

List common tasks you can accomplish with Unbounce MCP, each with an example prompt to ask for it.

Takes no input. Returns `{ recipes: [{ title, prompts }], total, presentation }` — use it to discover capabilities and how to phrase a request.

Present the result to the user as a list or table of title + full prompt(s) verbatim — never summarize, paraphrase, or truncate the prompts (see the returned `presentation` directive).

### Reset page stats

**Slug:** `UNBOUNCE_MCP_RESET_PAGE_STATS`

Zero ALL of an Unbounce page's A/B stats — every variant at once — by `page_uuid` (from list_client_pages).

This is page-wide and IRREVERSIBLE, and it takes effect LIVE and IMMEDIATELY: there is no draft/publish step to undo it, and the visit/conversion history every variant decision rests on is gone the moment this returns. It starts a fresh measurement window. Call get_page_stats first if you want a fuller record.

The response includes `wiped`, a best-effort snapshot of the totals just before the reset (as of the last stats aggregation, so it may omit the most recent traffic) — it is the only record you will have otherwise. On a page with no traffic recorded yet there is no per-variant breakdown, so `wiped.variants` is empty and a `variants_unavailable` note says so. Returns `{ ok: true, … }` on success, or `{ ok: false, code, reason, remedy }` so you can correct and retry.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |

### Set ai builder custom code

**Slug:** `UNBOUNCE_MCP_SET_AI_BUILDER_CUSTOM_CODE`

Set the custom-code slots of an AI Builder page's variant — the three fields Page Settings calls Custom HTML. This is the sanctioned place for a deliberate script (a countdown, a tag manager, a third-party embed). Do not put that code in the document passed to create_ai_builder_page or edit_ai_builder_page. Create rejects the slot holders (custom-html-body, custom-html-after-body) and the customCodeHead / customCodeBody settings. Edit rejects slot content the page did not already have and keeps the slots the page already had.

Pass only the slots to change. An omitted slot is left as it is; null or an empty string clears that slot.
- `head` — inside `<head>` (customCodeHead). Verification meta tags, early styles.
- `after_body_tag` — immediately after `<body>`. A script that must run before the page, such as a tag manager.
- `before_body_end` — immediately before `</body>` (customCodeBody). A script that needs the DOM, such as a countdown or an embed.

A `<script src="…">` is stored with that src and run by the browser on the published page. This call does not fetch the URL.

The account must have one of pageScripts, pageStylesheets or customHtmlElements — the same gate Page Settings uses to unlock these fields. Without it the call is refused and names the gate. A gate that cannot be read is refused too.

`variant` defaults to `a`. Each variant has its own slots. The write is saved against the version just read, after a restore point (`snapshot_version_id`). The result's `custom_code` is the three slots as stored, and get_ai_builder_document returns the same object. Staged until publish_page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `head` | string | No | HTML for the <head> slot. Omit to leave the slot unchanged. null or "" clears it. A script src is stored as written and is not fetched. |
| `context` | string | Yes | The numeric client (sub-account) id that owns the page — `context` from list_page_variants, or the client's numeric id from list_accounts_and_clients. |
| `variant` | string | No | The variant letter to write (default "a"). |
| `page_uuid` | string | Yes | The AI Builder page's uuid, from list_client_pages with builder: "ai_builder". |
| `after_body_tag` | string | No | HTML for the slot just after <body>. Omit to leave the slot unchanged. null or "" clears it. A script src is stored as written and is not fetched. |
| `before_body_end` | string | No | HTML for the slot just before </body>. Omit to leave the slot unchanged. null or "" clears it. A script src is stored as written and is not fetched. |

### Set conversion goals

**Slug:** `UNBOUNCE_MCP_SET_CONVERSION_GOALS`

Declare which parts of a Classic or AI Builder page count as conversion goals: the form submission and/or clicks on chosen links (http(s), tel:, and on an AI Builder page a lightbox).

Takes the COMPLETE desired set and converges every active variant onto it. The form posts as a goal (/fsg) or non-goal (/fsn — the lead is still captured, just not counted). An unmatched URL is rejected with the real candidates echoed back.

On a Classic MCP-managed page, chosen links are rewritten to the platform's goal-click tracking and the stored goal list is updated. A URL must exactly match an anchor href (candidates are listed by create_page_from_html / create_variant_from_html / update_variant_from_html / get_variant). Discarded and builder-built variants are left alone. Link and phone goals ARE tracked, but they do NOT appear in the Classic builder's Conversion Goals panel — that panel lists only builder-native elements. Manage those goals here.

On an AI Builder page the same call writes pages[0].settings.activeGoals on every active variant (the ones in the routing config). builder-api stamps data-goal from that list when the page is published, which is what counts the form and the clicks. A URL matches a candidate from get_ai_builder_document's conversion_goals block (the first page of a components view, or any full view); a trailing slash is ignored. A goal already stored that matches no candidate is kept and named in goals_kept, so a goal this walk cannot see is not dropped. These goals DO show in the Unbounce AI builder's Goals panel, and a save there keeps a goal whose element is still on the page. A variant whose stored goals already match is not saved, and its version_id does not move (variants_updated marks it unchanged). A variant that changes gets a new version_id — pass that to the next edit_ai_builder_page.

Page-scoped: every active variant gets the same goal set, so A/B conversion rates stay comparable. Changes are STAGED in draft — publish the page (publish_page) to make them live.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `link_urls` | array | No | The complete list of link, phone, and (AI Builder) lightbox URLs whose clicks count as conversions. On a Classic page each must exactly match an anchor href (entity-decoded). On an AI Builder page a trailing slash is ignored, and each must match a candidate. An empty list means no click goals. A URL present on no active variant is rejected. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages (the page whose goals to set). |
| `form_submission` | boolean | Yes | Whether the page's form submission counts as a conversion. false keeps capturing leads but stops counting them as conversions. Ignored when no active variant has a form. On an AI Builder page, false writes the goal list without the form entry, so the published form posts to /fsn. |

### Set page metadata

**Slug:** `UNBOUNCE_MCP_SET_PAGE_METADATA`

Set a page's SEO head fields and Open Graph (social-card) data: the `<title>`, meta description, robots noindex, favicon, and og:* tags. Works on Classic and AI Builder pages.

PARTIAL update: only the fields you pass change, `null` clears a field, omitted fields keep their value. Applies to ALL active variants by default — variants share one URL, so divergent metadata makes search snippets and social previews nondeterministic — pass `letter` to target one variant instead. `favicon` takes an `upload://` reference or an existing asset id/uuid (from list_assets); `open_graph.image` takes an absolute URL or an `upload://` reference (uploaded as a client asset; 1200×630 is the social-card convention). `title`/`description`/`keywords` accept Dynamic Text Replacement (`<ub:dynamic>`) tags on a Classic page — ask the user first. `keywords` is legacy (ignored by search engines since 2009) — usually leave it unset.

Changes are STAGED in draft: a published page keeps its old metadata until publish_page. On a Classic page, MCP-managed variants only (builder-built variants are skipped); read the result back via get_variant. On an AI Builder page the values are the page's settings (`pages[0].settings` of each variant's editor document, read back via get_ai_builder_document), every active variant is written, and each write creates a new version: the result lists each variant's new `version_id` for edit_ai_builder_page. There `open_graph.type` is always `website` and `open_graph.url` has no slot, and `<ub:dynamic>` is not rendered in the head — those come back as `warnings`, never silently dropped. The result echoes the applied metadata.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `title` | string | No | The page <title>. Search results typically show ~60 characters. Accepts <ub:dynamic> DTR tags on a Classic page. null clears it (an AI Builder page then uses its page name). |
| `letter` | string | No | Target a single variant by its letter (a/b/c, from list_page_variants). Omit to apply to every active variant (recommended — keeps variants consistent). |
| `favicon` | string | No | The browser-tab icon: an upload:// reference to an icon file (.ico/.png, 32×32 or 48×48 convention) or the id/uuid of an existing asset from list_assets. External URLs are not accepted (the favicon must be an Unbounce asset). null clears it (an AI Builder page then uses Unbounce's default icon). |
| `keywords` | string | No | Legacy meta keywords. Ignored by Google since 2009 and a potential spam signal when stuffed — usually leave unset. null clears it. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages (the page whose metadata to set). |
| `open_graph` | string | No | Open Graph (social-card) fields. Partial like the top level: only passed keys change, null clears a key; pass open_graph: null to clear the whole panel. No <ub:dynamic> here — OG values are plain text. |
| `description` | string | No | The meta description shown under the title in search results (~160 characters display). Accepts <ub:dynamic> DTR tags on a Classic page. null clears it. |
| `hide_from_search_engines` | boolean | No | true emits <meta name="robots" content="noindex, nofollow"> on the published page. |

### Set page url

**Slug:** `UNBOUNCE_MCP_SET_PAGE_URL`

Set an Unbounce page's published URL — domain + path — by `page_uuid` from list_client_pages.

`path` (required) is the new slug; `domain` (optional) defaults to the page's current domain, so you can change just the slug or move the page to another of the client's domains (from list_client_domains).

The change applies immediately and puts the page into a `urlchange` state rather than staging as a normal draft edit, so you must (re)publish the page (publish_page) for it to serve at the new URL. Changing a published page's URL orphans the old one — existing links to it break.

Returns `{ ok: true, url, domain, path, state, note }` on success; errors if the page isn't found or the URL is rejected (e.g. the path is already taken on that domain).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `path` | string | Yes | The new page path (slug), e.g. `spring-sale`. Leading/trailing slashes are trimmed. |
| `domain` | string | No | The domain to publish on (a `name` from list_client_domains). Defaults to the page's current domain when omitted. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |

### Set traffic

**Slug:** `UNBOUNCE_MCP_SET_TRAFFIC`

Stage how an Unbounce page splits visitors across its variants, by `page_uuid` from list_client_pages. Variant identifiers are letters (a/b/c) from list_page_variants.

Choose a `strategy`: `single` (one variant serves all traffic — pass `champion`), `weighted` (fixed per-variant shares — pass `weights`, plus an optional `champion`), or `dta` (Smart Traffic dynamically allocates traffic — optionally pass `variants` to scope which take part). The change is STAGED in the page's draft and only goes live when the page is (re)published (publish_page).

`weighted` (A/B testing) and `dta` (Smart Traffic) are paid features: if the account isn't entitled, the call is rejected up front before anything is staged — check the plan with get_account_plan, or use `single` to serve one variant.

Returns `{ ok: true, … }` with the staged state on success, or `{ ok: false, code, reason, remedy }` so you can correct the inputs and retry.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `weights` | object | No | Required for `weighted`: a map of variant letter to integer share, e.g. {"a":50,"b":50}. |
| `champion` | string | No | Variant letter (e.g. "a"). Required for `single` (the variant that serves all traffic); optional for `weighted` (the champion). |
| `strategy` | string ("single" | "weighted" | "dta") | Yes | single = one variant serves all; weighted = fixed per-variant shares; dta = Smart Traffic (dynamic allocation). |
| `variants` | array | No | Optional for `dta`: the variant letters that take part in the allocation. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |

### Set variant name

**Slug:** `UNBOUNCE_MCP_SET_VARIANT_NAME`

Rename one of an Unbounce page's variants, by `page_uuid` from list_client_pages and the variant `letter` a/b/c from list_page_variants.

A variant's name is editor metadata, not page content, so the rename applies immediately — no publish_page step is needed and visitors are unaffected.

Returns `{ ok: true, … }` with the new name on success, or `{ ok: false, code, reason, remedy }` so you can correct the inputs and retry.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The new display name for the variant (max 255 characters). |
| `variant` | string | Yes | The variant letter (e.g. "a", "b") from list_page_variants. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |

### Set variant standing

**Slug:** `UNBOUNCE_MCP_SET_VARIANT_STANDING`

Move one of an Unbounce page's variants through the A/B-test lifecycle, by `page_uuid` from list_client_pages and the variant `letter` a/b/c from list_page_variants.

Choose a `standing`: `champion` (make this variant the page's baseline), `discarded` (pull a challenger out of the test — reversible, not a delete), or `challenger` (bring a discarded variant back into the test). This is the same `standing` list_page_variants reports for each variant, so you can read a variant's current standing there and pass the target one here without translating.

The change is STAGED in the page's draft and only goes live when the page is (re)published (publish_page). Returns `{ ok: true, … }` with the staged state on success, or `{ ok: false, code, reason, remedy }` so you can correct the inputs and retry.

Works on Classic and AI Builder pages. On an AI Builder page, promoting the current champion or a discarded variant is rejected (`set-variant-standing.upstream-validation`) — a variant listed as a challenger there may be discarded, so set it to `challenger` first, then promote it. Asking for `challenger` on a variant already in the test (an active challenger, or the champion, which stays champion) changes nothing and returns ok; to replace the champion, promote another variant.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `variant` | string | Yes | The variant letter (e.g. "a", "b") from list_page_variants. |
| `standing` | string ("champion" | "challenger" | "discarded") | Yes | champion = make this variant the baseline; discarded = pull a challenger out of the test (reversible); challenger = bring a discarded variant back into the test. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |

### Submit feedback

**Slug:** `UNBOUNCE_MCP_SUBMIT_FEEDBACK`

Record feedback about the Unbounce MCP tools — a bug, praise, a feature request, confusion, or other — to the team's feedback store, without copy/paste.

Use the mcp-feedback skill to drive this: it composes the record, redacts secrets, and shows you the exact content for an explicit yes before calling this tool. The server re-scrubs secrets and stamps identity, time, and build itself; only `type` and `message` travel through the conversation.

Returns the stored feedback id and how many secrets were redacted.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `type` | string ("bug" | "praise" | "feature_request" | "confusion" | "other") | Yes | The feedback category: 'bug' (something broke), 'praise', 'feature_request', 'confusion' (something was unclear), or 'other'. |
| `context` | string | No | Optional structured context. For a bug, the verbatim failing tool call(s) and error (tool name, exact args, raw error). Free-form JSON; strings are secret-scrubbed. |
| `message` | string | Yes | The feedback in the user's own words. Secrets are redacted before storage. |

### Unpublish page

**Slug:** `UNBOUNCE_MCP_UNPUBLISH_PAGE`

Unpublish a Classic landing page or an AI Builder page, by `page_uuid` from list_client_pages, taking it offline so its URL stops serving.

The unpublish is asynchronous: the tool polls briefly and reports `done:true` with `state:"unpublished"` once the page settles, or `done:false` with the in-progress state and a note to re-check.

Errors if the page isn't found, is neither a Classic landing page nor an AI Builder page, or isn't currently published.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |

### Update variant from html

**Slug:** `UNBOUNCE_MCP_UPDATE_VARIANT_FROM_HTML`

Full-replace an existing MCP-managed variant's body (`page_uuid` from list_client_pages, variant `letter` a/b/c from list_page_variants) with already-uploaded HTML/CSS/JS: pass the `upload://` references from `upload` as `html_ref` (body-content HTML), optional `css_refs` (stylesheet), and optional `scripts` (custom-JavaScript elements).

The HTML and CSS are a TRUE FULL REPLACE — CSS not passed on this call is REMOVED, so send every stylesheet you want the variant to keep, every time. JavaScript is different: OMIT `scripts` and the variant's existing custom-JavaScript elements are kept as they are (reported back as `scripts_preserved`) — that protects scripts added outside these tools, such as an Unbounce popup. Pass `scripts` to state the complete desired set and replace them; whatever it drops comes back in `removed_scripts`. Entries in `removed_scripts` and `scripts_preserved` are themselves `scripts` entries — pass one back unchanged to restore that script (a plain include appears as `src`, with its `async`/`defer`; anything else, including an include carrying other attributes, as verbatim `tag`). Pass `scripts: []` to remove them all. Referenced images and fonts are rehosted as client-owned Unbounce assets and the markup rewritten to the CDN URLs (reuse an existing asset via its `cdn_url` from list_assets instead of uploading a duplicate — uploads are deduplicated against the client's library); external http(s) URLs are left untouched.

A `<form>` in the new HTML is automatically wired for lead capture; it must be well-formed — one `<form>` with named fields and a submit button, no `pageId`/`pageVariant` fields, no `onsubmit`/`onclick` handlers — or the call fails listing every issue. Submission belongs to the Unbounce runtime: no script (inline or in `scripts`) may listen for `submit`, POST to `/fsg`/`/fsn`/`/fs` or the form's `action` itself, or assign to a `window.ub.hooks` array — the call rejects those too (a hand-rolled POST is flagged as spam; remote `src` includes are not inspected). A wired form shows a default "Thank you!" confirmation dialog on submit, so it's never a silent dead end; `.push` a callback onto `window.ub.hooks.afterFormSubmit` (in a `scripts` entry or an inline `<script>` in the body HTML) to customize the post-submit experience — message, redirect, webhook mirror — or suppress the default dialog.

Only MCP-managed variants can be updated this way — a variant hand-built in the Unbounce builder is refused (import it into an editable MCP copy first with create_variant_from_existing_variant, or author a fresh variant with create_variant_from_html); the reverse also holds, an MCP-managed variant cannot be edited in the Unbounce builder. The change is STAGED and only goes live when the page is (re)published (publish_page), so editing a live champion is safe.

Head metadata tags in the HTML — `<title>`, `<meta name="description|keywords|robots">`, `og:*`, `<link rel="icon">` — are lifted out and applied as this variant's metadata (reported under `head_metadata`, with a divergence warning when sibling variants exist — converge with set_page_metadata). Dynamic Text Replacement (`<ub:dynamic>`) is a paid feature: HTML containing it is rejected up front if the account isn't entitled (remove it, or check the plan with get_account_plan). File bytes are read server-side and never pass through this conversation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `letter` | string | Yes | The variant letter (e.g. "a", "b") from list_page_variants. |
| `js_refs` | string | No | REMOVED — renamed to `scripts`, which also accepts external includes, a name, and a placement. Passing it is an error: move the upload:// references into `scripts`. |
| `scripts` | array | No | The variant's custom-JavaScript elements. Each entry is either a bare upload:// reference string (a .js file at the default placement, named after the file) or an object with exactly one of `ref` (a .js file), `src` (an absolute http(s) URL to include — a popup or other third-party embed), or `tag` (verbatim <script> markup), plus optional `name`, `placement` (head / body_top / body_bottom), and — for `src` only — `async` / `defer`. OMIT this to leave the variant's existing scripts alone, including any added outside these tools. Passing it states the COMPLETE desired set: anything not listed is removed and comes back in `removed_scripts` ready to re-send. Pass an empty array to remove every script. |
| `css_refs` | array | No | Optional upload:// references to CSS files, concatenated in order into the variant stylesheet. Omitting them REMOVES any existing CSS (full replace). |
| `html_ref` | string | Yes | upload:// reference to the body-content HTML for the variant (stored in the Custom HTML element). Provide body-ready markup, not a full <html> document. |
| `page_uuid` | string | Yes | The pageUuid from list_client_pages. |
| `check_external_refs` | string ("fatal" | "warn" | "off") | No | How to handle external (http(s)) references that survive rehosting and don't resolve. `fatal` (default): a dead Unbounce-hosted asset URL (which would abort publish) fails the call; dead third-party URLs are returned as warnings. `warn`: never block. `off`: skip the reachability check entirely. |

### Upload

**Slug:** `UNBOUNCE_MCP_UPLOAD`

Upload local files (html/css/js + assets) to your server-side workspace without sending their bytes through this conversation.

Returns one temporary upload URL per file; run the printed `curl -T <localfile> '<upload_url>'` for each (no auth header needed — auth is baked into the URL), so bytes go straight to storage, never through the model. Declare each file's exact byte size (`wc -c <file>`); the size is enforced on upload.

Pass the returned `upload_path` values (`upload://<handle>/<relpath>`) to other tools — as html_ref for the HTML-authoring tools, or as an image/font reference inside authored HTML and bulk_edit_variants op values (rehosted to a client-owned CDN URL when applied).

Each call creates a fresh upload folder, so refs are immutable snapshots — a later upload never changes what an existing ref points to. A relative reference written inside your HTML/CSS resolves only within the HTML's own folder: upload the HTML together with everything it references by relative path in ONE call, or write the full `upload://` ref in the markup instead. Can't run shell/curl? Use `upload_inband` instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `files` | array | Yes | The files to upload (1–50). Relative paths share one upload folder. |

### Upload inband

**Slug:** `UNBOUNCE_MCP_UPLOAD_INBAND`

Upload text files (HTML/CSS/JS) to your server-side workspace by sending each file's content inline as a tool argument.

Use this only if you cannot run shell/`curl` commands locally; if you can, prefer `upload`, which keeps bytes out of this conversation. Content rides through the conversation here, so keep files small and text-only — binary assets (images, fonts) are NOT supported: reference them by external http(s) URL instead, or reuse an existing asset's `cdn_url` from list_assets.

Returns one `upload://<handle>/<relpath>` reference per file, usable anywhere the references from `upload` are — html_ref / css_refs, and a `scripts` entry's `ref`, for create_page_from_html / create_variant_from_html / update_variant_from_html. Relative paths share one upload folder, so a file can reference a sibling by relative path — but ONLY a sibling from the same call: each call (to this tool or to `upload`) creates a fresh folder, so refs are immutable snapshots and cross-call files must be referenced by their full `upload://` ref, not a relative path.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `files` | array | Yes | The files to upload (1–50). Relative paths share one upload folder. |

### Version

**Slug:** `UNBOUNCE_MCP_VERSION`

Return which build of the unbounce-mcp server is running: the git commit SHA (full and short) the deployed artifact was released from, and the environment (integration, production, or local).

### Whoami

**Slug:** `UNBOUNCE_MCP_WHOAMI`

Return the authenticated Unbounce user (sub, id, email, first_name, last_name) by calling the Unbounce API on the caller's behalf.
