L'Atlas / MCP servers / Compose Preview Catalogs
MCP server

Compose Preview Catalogs

io.github.yschimke/compose-preview

MCP server OK 78 tools

Get a review See pricing

Browse, inspect and render Jetpack Compose Material 3 and Wear component catalogs.

Technical sheet

Author
yschimke (registry namespace)
Repository
github.com/yschimke/compose-preview-server
Site
—
Version
3.204.0
Transport
Streamable HTTP
Authentication
None (observed by our test)
Server address
https://preview.coo.ee/mcp Streamable HTTP
Tools
78
Categories
—
Last updated
30 Nov 2026
Published
30 Nov 2026

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.yschimke/compose-preview.svg?lang=en)](https://latlas.dev/en/mcp/io.github.yschimke/compose-preview)
HTML
<a href="https://latlas.dev/en/mcp/io.github.yschimke/compose-preview"><img src="https://latlas.dev/badge/fiche/io.github.yschimke/compose-preview.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://preview.coo.ee/mcp
Last result
OK 28 Nov 2026, 10:27
Response time
486 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
compose-preview-catalog 3.203.0
Tools
78

History

DateResultResponseTools
28 Nov 2026, 10:27OK486 ms78

Exposed tools (78, from tools/list, 28 Nov 2026)

request_access

Ask a human for access to this server. Returns an approveUrl and a userCode: show BOTH to the person you are working with, ask them to open the link and check that the code on the page matches, then call poll_access. When the client supports URL elicitation, call poll_access with urlMode=true instead of pasting the link into chat; clients without it keep this complete text fallback. The link grants nothing by itself — keep the deviceSecret this returns, it is what collects the token. Use this when a call answered 'authorization_required', or when your token stopped working (a server restart drops every grant).

ParameterTypeRequiredDescription
labelstringno
scopeenum: "preview" | "live" | "playground"no
ttlSecondsintegerno
capabilitiesarray<string>no

poll_access

Collect the outcome of a request_access, proving possession of its deviceSecret. It HOLDS THE CALL OPEN and answers the moment the human decides — one call instead of a dozen, since each poll here costs a whole round trip through you. It waits 8 seconds by default; pass waitSeconds (up to 30) if your client tolerates a longer call. Pass urlMode=true when the client supports URL elicitation: while the request is pending this returns the standard -32042 URL-elicitation-required error, and retrying the same call after the browser decision returns the outcome. A wait that times out answers status=pending, and you simply call again. Then approved (with the token) or denied/expired. Use the token on every later call: as the X-Compose-Preview-Token header where you control headers, and otherwise as each gated tool's 'token' argument — which is what an MCP client reaching this flow mid-session needs, since its headers were fixed when it connected.

ParameterTypeRequiredDescription
requestIdstringyes
deviceSecretstringyes
waitSecondsintegerno
urlModebooleannoUse the protocol-standard URL elicitation UI while this request is pending.

status

Report readiness, the aggregate catalog set, and which host this is: `origin`, the canonical origin designs here are homed at, and `originAliases`, other hostnames that reach this same server.

ParameterTypeRequiredDescription
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_list_projects

List every remote catalog with its stable id and preview count. Call this first: catalog_list_previews and catalog_list_data_products take one of these ids as 'catalog'.

ParameterTypeRequiredDescription
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_library

Preview Catalogs

Open the hosted preview catalog browser app. With no arguments it lists every catalog with its preview count only; pass projectId to list one catalog's previews. To find previews without the app, call catalog_list_projects, then catalog_list_previews with a catalog id. Also opens from the ChatGPT/Codex sidebar.

ParameterTypeRequiredDescription
projectIdstringnoA catalog id from catalog_list_projects whose previews to list.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

ui_builder_open

UI Builder

Open the UI Builder's design list: pick a design to see it as the editor draws it. Takes no arguments. Also opens from the ChatGPT/Codex sidebar, and a deep link to /design/ opens one design.

ParameterTypeRequiredDescription
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

catalog_list_previews

List the Compose previews and published metadata of one hosted catalog. 'catalog' is required (ids from catalog_list_projects). Pass 'query' (a component name such as EdgeButton) to narrow by id or label; results are paged (100 by default, 'offset'/'limit' for more). This server holds published library catalogs only: previews of the project you are editing come from the local compose-preview-mcp server, not from here.

ParameterTypeRequiredDescription
catalogstringyesA catalog id from catalog_list_projects.
querystringnoCase-insensitive substring of a preview id or label, such as a component name.
offsetintegerno
limitintegerno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_render_preview

Render one preview. Like local compose-ai-tools, the default semantics observation is token-frugal; request observe=png for pixels, observe=svg for the compose/figma-svg vector export as SVG source, or observe=scroll-png / observe=scroll-svg for the full-page capture of a scrollable screen rather than the viewport crop. Watch face previews also accept structured 'complications', 'watchFace', 'ambient', 'previewTime' / 'clockEpochMillis', and 'wfRenderer' ('dwf-rc' or 'dwf-apk'). 'watchFace' is the state the preview's own face is drawn in, never a face of its own: 'ambient', 'previewTime' (HH:mm, HH:mm:ss or epoch millis), 'clockEpochMillis', 'is24Hour', sensor values ('batteryPercent', 'stepCount', 'heartRate', ...), 'configurations' (UserConfiguration id to option) and 'themeColors'. Any other key, such as 'xml' or 'designId', is refused; a UI Builder design is seen on the real runtime in its Native pane. 'dwf-apk' runs the Android watch-face runtime and is refused with catalog_native_render_disabled where this server has turned that off; the default is then 'dwf-rc'; see each preview's watchFaceRenderers. Overrides, other observations and fresh renders require live grant scope; without it, a call with no overrides returns the published snapshot (as resources/read does).

ParameterTypeRequiredDescription
uristringno
catalogstringno
previewIdstringno
observeenum: "png" | "svg" | "scroll-png" | "scroll-svg" | "semantics" | "hash"no
overridesobjectno
complicationsarray<object>no
watchFaceobjectnoThe state the preview's own face is drawn in; not a face of its own.
ambientbooleanno
ambientBurnInbooleanno
ambientLowBitbooleanno
clockEpochMillisintegerno
previewTimestringno
wfRendererstringno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_render_matrix

Render one preview across the cross-product of the given override 'axes' (or an explicit list of watch-face 'scenarios') in a single call, returning a hash/size observation per cell (observe=png adds the pixels). Prefer this over a catalog_render_preview per combination: the cells share one catalog lease and are reported together, so comparing axes or scenarios costs one round trip instead of N. Capped at 24 cells. Requires live grant scope.

ParameterTypeRequiredDescription
uristringno
catalogstringno
previewIdstringno
observeenum: "png" | "hash"no
overridesobjectno
axesobjectno
scenariosarray<object>no
wfRendererstringno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_list_devices

List the `@Preview(device = ...)` ids this server's render lane recognises, with each one's dp size and density. The `device` override takes one of these ids; an unrecognised name renders the default frame rather than failing, so check here instead of guessing.

ParameterTypeRequiredDescription
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_diff_semantics

Compare two previews' semantics by testTag: which tags are only in one side, which moved, and which changed occupancy count. Identity is the authored testTag, not a positional ref, so a tag that stops resolving is reported rather than silently retargeted at different pixels. Requires live grant scope.

ParameterTypeRequiredDescription
catalogstringno
previewIdstringno
uristringno
otherobjectyes
overridesobjectno
otherOverridesobjectno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_history_list

The render timeline for one preview: which versions of its rendered bytes exist, when each appeared, and whether the preview is unstable (re-renders differently on every publish) rather than genuinely changing. Where this server holds the timeline it is returned inline; where the catalog is published from a delivery branch the manifest lives on that branch and this reports where to fetch it.

ParameterTypeRequiredDescription
uristringno
catalogstringno
previewIdstringno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_history_diff

Compare two of a preview's recorded renders. Defaults to the two newest — did the last publish move this preview? A metadata comparison: the timeline's versions are already collapsed distinct renders, so whether the bytes changed is answered without fetching either image. Reports `unstable` so a difference on a nondeterministic preview is not mistaken for a real change.

ParameterTypeRequiredDescription
uristringno
catalogstringno
previewIdstringno
fromstringno
tostringno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_history_read

Fetch one historical render's pixels through this server, by `commit` or `blob` (a prefix is enough). Use when an agent cannot reach the delivery branch itself, or wants the bytes rather than the timeline.

ParameterTypeRequiredDescription
uristringno
catalogstringno
previewIdstringno
commitstringno
blobstringno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

ui_builder_validate_watch_face

Check what a watch-face design (a `wff-watchface` catalog design) costs on a watch, with Google's own validators: the WFF schema, the memory footprint and the Watch Face Push checks a watch runs before it installs a face. Returns `passed` and one entry per check with its findings; each finding carries a `suggestion` saying what to change. The `memory-footprint` check's `memory` is the face's decoded size against `activeLimitBytes` and `ambientLimitBytes`, and its `contributors` list the resources that cost the most (pixel size, decoded bytes, the size each is drawn at). Keep both modes under their limits: downscale an image to the size it is drawn at, and give ambient a dim or reduced variant rather than the full-colour one. A bitmap the face names that the design does not pin fails `bundle-resources`; pin it with ui_builder_put_asset. Validation is explicit: nothing else runs it, not an edit, a read or a publish. It runs the full packager, so call ui_builder_validate_watch_face when an edit pass is done and before ui_builder_publish_watch_face, not after every edit; an unchanged face answers from cache. The server runs one validation at a time and limits each account, so a busy or rate-limited call answers `watch_face_validation_busy` or `watch_face_validation_rate_limited` with `retryAfterSeconds`; wait that long. The per-edit `watchFaceCost` is the cheap estimate: every ui_builder_apply, ui_builder_replace_design_document and ui_builder_put_asset on a watch face already r…

ParameterTypeRequiredDescription
designIdstringyes
revisionintegernoThe revision to validate. Defaults to the current one.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_publish_watch_face

Publish a watch-face design (a `wff-watchface` catalog design) to Wear OS watches, or take it off them. `published: true` publishes the design's current revision: the server exports its Watch Face Format, builds a signed Watch Face Push APK, and lists it to every watch linked to the owner's account (and, for a public design, to any watch). Publish again after editing to ship the edit; the `version` moves only when the face itself changed. `published: false` stops listing it. Only the design's owner may, or a grant the owner approved with `ui-builder-publish` (request_access with that capability; write alone never implies it). A face the packager refuses is refused here with its diagnostics. A public design is listed to every watch on its own, from a settled revision; publishing pins the revision, and `visibility: private` keeps a public design to the owner's linked watches only; run ui_builder_validate_watch_face first, which says per check what to fix and how much of the memory budget the face uses.

ParameterTypeRequiredDescription
designIdstringyes
publishedbooleanyestrue to publish the current revision, false to unpublish.
visibilityenum: "public" | "private"noWith published: true. public lists it to every watch (the design must be public); private only to the owner's linked watches. Omit to follow the design's own visibility.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_list_catalogs

List the component catalogs a UI-builder design can pin to. Start here: a design's `catalogPin` must name a revision this server actually serves, and each catalog's `catalogPin` here is exactly that. By default a summary of what authoring needs, a few KB rather than the whole capability: per component its id, role, traits, `slots` as `name[min..max]:accepted|roles` and `properties` as `name:type`, with `!` when required and `=a|b` listing the allowed values; per catalog its export formats and the modifier vocabulary. `full: true` returns the released CatalogsResponseV1 envelope with adapter status, parity and export notes per component; `componentIds` narrows either to the components you are about to use.

ParameterTypeRequiredDescription
fullbooleannoThe whole CatalogCapabilityV1 per catalog, as the released envelope. Defaults to false.
componentIdsarray<string>noOnly these components. Omit for all of them.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_search_components

Find catalog components by id, display name, Compose symbol, role or trait, e.g. `TextField`, `text field`, `OutlinedTextField`, `Button`, `Card`. Case, spaces, hyphens, underscores, slashes and camelCase are ignored, and the components the query names come first: an exact name, then a prefix, then a name containing it, then role and traits. Returns the same summary as ui_builder_list_catalogs (id, role, traits, slots, properties, and the catalog pin) for only the matches, so you don't pay for the whole catalog.

ParameterTypeRequiredDescription
querystringyesText to look for in a component's id, display name, Compose symbol, role or traits.
catalogstringnoOnly this catalog system id, e.g. m3-catalog. Omit to search every catalog; an id this server does not serve is an error.
catalogSystemIdstringnoThe same as `catalog`.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_list_designs

List the UI-builder designs on this server, newest first, with the cursor to continue.

ParameterTypeRequiredDescription
cursorstringnoContinue a previous page.
limitintegernoDesigns per page. Defaults to 50.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_get_design

Read one design: its whole document — nodes, slots, properties, modifiers, state variables and catalog pin — plus the revision to quote as `baseRevision` when editing it. The catalog the design pins is left out unless `includeCatalog` is true: it is the same for every design on the pin, ui_builder_list_catalogs serves it, and it is most of the bytes. `home`, at the top of the reply, is where the design is canonical (`{kind: server, url, designId}` or `{kind: repo, path}`): edit it there. It is absent when none is recorded (a design made before homes existed, or on a host with no public origin), and then the canonical home cannot be verified. On hosts with design discussions, `unacknowledgedComments` is the number of comment threads this actor has not acknowledged; a nonzero count also carries the bounded `comments` notice.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegernoA past revision. Omit for the current one.
includeCatalogbooleannoEmbed the pinned catalog's whole CatalogCapabilityV1 in the snapshot, as the released shape does. Defaults to false.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_preview_catalog_recovery

Dry-run recovery of a design whose stored catalog pin no longer resolves (`catalogUnavailable` from ui_builder_get_design). The server selects the exact currently served pin for the same catalog system and returns a CatalogUpgradePreviewV1: `status` (`ready` or `blocked`), `changes`, `issues`, and the hashes the move is checked against. This call never writes. When `status` is `ready` the reply also carries `apply`: the complete arguments for ui_builder_apply — send that object as they are and the design moves onto the served pin, recorded as a new revision. Assembled by hand it is `operations: [{"type":"upgradeCatalog", sourceCatalogPin, targetCatalogPin, sourceDocumentHash, targetDocumentHash, previewDigest}]` with `baseRevision` set to the preview's `baseRevision`, where `targetDocumentHash` is the preview's `candidateDocumentHash` and the other four are copied by name. A `blocked` preview has no `apply`: its error-severity `issues` say what the served catalog no longer accepts. The candidate document itself is omitted, since it is the whole design again; `includeCandidate: true` returns it.

ParameterTypeRequiredDescription
designIdstringyes
includeCandidatebooleannoReturn `preview.candidateDocument`, the whole design as it would be on the served pin. Defaults to false.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_await_design

Wait for somebody else to change a design and return what they changed, rather than asking again whether they have. Returns the moment a designer in the browser or another agent commits an edit, as the same update frame the browser's own live socket receives; returns a `timedOut` reply if nothing happens within `waitSeconds`, which you answer by calling again with the same cursor. Quote as `afterSequence` the `throughSequence` of the delta you last received, or the `lastSequence` of the last snapshot; a cursor the server no longer retains is answered with a whole snapshot instead of the operations you missed. `waitSeconds: 0` checks without blocking. Nothing is lost between calls — the cursor is replayed when you call again — so somebody merely looking at the design does not wake you, and only a committed change does.

ParameterTypeRequiredDescription
designIdstringyes
afterSequenceintegeryesThe `lastSequence` you last saw, from ui_builder_get_design or a previous wait.
waitSecondsintegernoUp to 120. Defaults to 25.
includeCatalogbooleannoWhen the reply is a whole snapshot, embed the pinned catalog in it. Defaults to false.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_create_design

Create a design, either from a whole `document` you supply or by copying an existing design named by `fromDesignId`. Copying is usually right: a document's `catalogPin` must match a catalog revision this server serves, and a copy carries one that does. A `document` whose `home` is an existing design on this server is refused with a `compose-preview-decision/v1` choice to put to the person — or, when your client supports form elicitation on this connection, the person is asked in a form and the call acts on their answer.

ParameterTypeRequiredDescription
designIdstringyesThe id for the new design.
titlestringno
documentobjectnoA whole DesignDocumentV1.
fromDesignIdstringnoCopy this design's document instead.
visibilityenum: "private" | "public"noDefaults to the server's configured visibility, which is private unless the operator chose public. Public allows anyone with the link to view; editing still requires explicit access.
includeCatalogbooleannoEmbed the pinned catalog in the returned snapshot. Defaults to false.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_apply

Apply design mutations — insertNode, setProperty, deleteNode, moveNode and the rest of DesignMutationV1 — as one operation. `baseRevision` is the revision you read; the outcome reports conflicts or rejected edits. This is how an agent adds a scaffold, fills its slots and sets modifiers. Use `setStateVariable` with `name` and `declaration` to add or edit state, `removeStateVariable` with `name` to remove unused state, and `setEventBinding` with `nodeId`, `event` and an ordered `actions` array to edit behavior. An empty actions array removes the event handler. These are the same edits as Screen > State and Properties > Actions in the browser. `removeNodeProperty` (or a setProperty whose value is `{"type":"null"}`) unsets the property — the way back after trying one — and is refused, naming the node and the field, when the catalog requires it. When somebody has commented on the design and you have not acknowledged it, the outcome carries a `comments` block naming the threads waiting on you; read it, because it is somebody talking about what you are editing. To recover a design whose catalog pin stopped resolving, send the `apply` object ui_builder_preview_catalog_recovery returns: one `upgradeCatalog` mutation, alone in its batch, at the preview's `baseRevision`, with the preview's `candidateDocumentHash` as its `targetDocumentHash`.

ParameterTypeRequiredDescription
designIdstringyes
operationIdstringyesYour id for this operation; makes a retry idempotent.
baseRevisionintegeryesThe revision these mutations were written against.
clientIdstringno
operationsarray<object>yesDesignMutationV1 objects. State example: {"type":"setStateVariable","name":"expanded","declaration":{"type":"value","valueType":"bool","initialValue":false,"nullable":false,"persistence":"preview"}}. Event example: {"type":"setEventBinding","nodeId":"button","event":"click","actions":[{"type":"togg…
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_move_design_home

Move a design's canonical home between this server and a repository checkout. This changes real authoritative state: quote the exact `baseRevision` and current `sourceHome` from ui_builder_get_design, provide a stable `operationId`, and name the new `targetHome`. The old server record remains as a retained copy pointing at the new home. The reply is an idempotent operation outcome with the new revision; a stale revision or changed source home is refused rather than overwriting a concurrent move. Unless the person already chose this move, call first with `dryRun: true`: it changes nothing and returns the choices to put to them — or, when your client supports form elicitation on this connection, asks them in a form and, if they choose to move, returns this move's outcome.

ParameterTypeRequiredDescription
designIdstringyes
operationIdstringyesYour stable id; makes a retry idempotent.
baseRevisionintegeryesThe exact current revision read from the design.
sourceHomenull | object | objectyesThe exact current DesignHomeV1, or null when the design is unhomed.
targetHomeobject | objectyes
dryRunbooleannoValidate and return the person's choices without changing anything.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_replace_design_document

Replace one stored design from a complete DesignDocumentV1 copy — the authoritative save-back and re-import operation. The document must name the same design and the same canonical home you read from ui_builder_get_design; `baseRevision` must still be current. The runtime validates the complete document and quotas, preserves server-owned identity, access and creation time, retains the old revision, and broadcasts a whole snapshot. Retry with the same `operationId`; never invent a new id after a lost response. Unless the person already chose to save back or re-import onto this home, call first with `dryRun: true`: it changes nothing and returns the choices to put to them — or, when your client supports form elicitation on this connection, asks them in a form and returns the outcome of the write they chose.

ParameterTypeRequiredDescription
designIdstringyes
operationIdstringyesYour stable id; makes a retry idempotent.
baseRevisionintegeryesThe exact current revision being replaced.
documentobjectyesThe complete replacement DesignDocumentV1, including the existing home.
dryRunbooleannoValidate and return the person's choices without changing anything.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_export

Export a design. `compose` returns the Kotlin the generator writes, or — when the design holds something it cannot express — diagnostics naming each reason. This is the same gate the browser's code pane shows, so an agent and a designer get the same answer about the same design.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegerno
formatstringnoDefaults to compose. Available formats: compose, svg, png, bundle, json, rc, wff_xml, wff_bundle, wff_apk, kobento_json. Check the catalog exportCapabilities. A watch face's bundle is its Watch Face Format source zip (res/raw/watchface.xml, watch_face_info.xml, AndroidManifest.xml, preview and pinn…
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_export_document

Compile supplied DesignDocumentV1 content without saving it or reading an existing design. Use an exact catalog pin from ui_builder_list_catalogs. Supports PNG, Remote JSON and RC; returns the same artifact and located diagnostics as saved-document export.

ParameterTypeRequiredDescription
documentobjectyesComplete DesignDocumentV1 content, including its catalog pin.
formatenum: "png" | "json" | "rc"yes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_validate

Check a design without saving it: a whole `document`, a stored design by `designId`, or `operations` against a stored design exactly as ui_builder_apply would apply them. Runs the same checks the real call does — document shape, catalog pin, the catalog's own validation, the mutation reducer — and then the Compose export gate, which is the list the editor's problems panel shows. Returns `{valid, problems:[{severity, source, code, message, nodeId?, field?, operationIndex?}]}`; `valid` is false exactly when a problem is an error. Nothing is written, no revision moves and nobody watching the design is notified. The shapes are published as the resources compose-preview://schemas/ui-builder-document-v1.json and compose-preview://schemas/design-mutation-v1.json.

ParameterTypeRequiredDescription
documentobjectnoA whole DesignDocumentV1 to check.
designIdstringnoA stored design to check, or to check `operations` against.
operationsarray<object>noDesignMutationV1 objects to check against `designId`'s current document, as ui_builder_apply takes them.
baseRevisionintegernoThe revision the operations were written against; a stale one is reported as a warning.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_put_asset

Put a picture behind an `assetKey`, so an `asset/image` node naming that key draws it instead of a placeholder. Send the PNG, JPEG, GIF or WebP bytes base64-encoded in `imageBase64`; the server stores them by content digest and pins {mediaType, contentDigest, source: uploaded} into the design's `assets` map under the key. This moves the design's revision, and the reply carries the new one to quote as `baseRevision`. Idempotent by content — the same bytes under the same key change nothing. Put the picture first, then insert the `asset/image` node with ui_builder_apply: the reducer refuses a key that is neither pinned in the design nor in the catalog's own registry. A pinned key whose bytes a lane cannot show renders as a visible placeholder, never as an error.

ParameterTypeRequiredDescription
designIdstringyes
assetKeystringyes1 to 64 characters of letters, digits, '.', '_' or '-'; what the node's assetKey property names.
imageBase64stringyesThe image bytes, base64. At most 1 MiB decoded.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_design_access

Read who can open a design: its owner, and every actor it has been shared with, each with the role and the actions that grant carries. Only the owner may ask — this is the answer to "who else is in here" and to "what is the id I must name when sharing".

ParameterTypeRequiredDescription
designIdstringyes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_share_design

Share a design with somebody else, or take that sharing back. `actorId` is the other party's actor id as this server spells it — `github: ` for a signed-in person, `operator` for the token holder, `agent: ` for another agent's grant; ui_builder_design_access lists the ones a design already carries. A `viewer` may read and export, an `editor` may also change the design, and neither may share it on. Only the design's owner may share it, and an agent acting under an approved grant shares as the person who approved that grant. Pass visibility instead of actorId to choose private or public (read only). Private keeps existing invited collaborators.

ParameterTypeRequiredDescription
designIdstringyes
actorIdstringnoWho to share with, e.g. github:octocat.
visibilityenum: "private" | "public"noChange visibility instead of an actor grant. Public is read only. Private keeps invited collaborators.
rolestringnoeditor or viewer. Defaults to viewer.
revokebooleannoTake this actor's access away instead.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_get_links

Read what a design is **for**: the `issue` it was drawn for, the `reference` frame in the design tool it reproduces, the `pr` that implemented it, the `thread` it is being discussed in, and the `previous` design it continues. Start a session on somebody else's design here — it is the brief, and it is what ui_builder_get_design cannot tell you. Every field is optional; a reply with none of them means nobody has said yet. The record is kept beside the design and is never part of it: no node holds it, no export sees it, and writing one does not move the revision. Ancestry rides along where there is some: `forkedFrom` / `forks` for a fork made with ui_builder_fork_design, and `branchOf` / `branches` for a design branch and its parent.

ParameterTypeRequiredDescription
designIdstringyes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_set_links

Say what a design is for. **Replaces the whole record**: send every link you want kept, and omit one to clear it — so read ui_builder_get_links first if you are adding to what is already there. `issue`, `reference`, `pr` and `thread` are absolute http or https URLs, at most 2 KB each; `previous` is a design id on this host, not a URL. Anything else is refused with the reason. Sending an empty record clears it. Record the `pr` when you open one for a design you built here: it is what lets the next session, and the person who filed the issue, find one from the other.

ParameterTypeRequiredDescription
designIdstringyes
issuestringnoThe tracker issue this design is for.
referencestringnoThe frame in the design tool it reproduces.
prstringnoThe pull request that implemented it.
threadstringnoA permalink to a discussion held elsewhere, such as a chat thread. It does not replace this server's comments for a server-homed design: keep that discussion on the design.
previousstringnoThe design id on this host that this one continues.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_rename_design

Give a design a new title. The title is the one thing about a design nothing else could change: it is set at creation, shown in every listing and the editor, and not part of any mutation. Anybody who may write the design may rename it. The revision does not move — a title is not design content — so `baseRevision` is not needed and an edit in flight is unaffected. Not the released envelope: the contract has no rename, so the reply is the design's listing entry with its new title.

ParameterTypeRequiredDescription
designIdstringyes
titlestringyes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_delete_design

Delete a design: it moves to the trash with its history, access list, overlay and discussion, and is gone from every listing and tool until ui_builder_restore_design brings it back, which works until `restorableUntilEpochMillis` in the reply (a day). After that it is purged for good. Only the owner may delete, or an agent acting for the owner: on a design it created itself under its current grant, or on any of the owner's designs when the approver also ticked `ui-builder-destructive` — never an editor, a viewer, or anybody merely holding a write grant. Without that capability a session can clean up the designs it made and nobody else's; ask for it with request_access when you are asked to delete existing designs. A trashed id cannot be reused until it is restored or purged. Not the released envelope: the contract has no delete, so the reply names the design and its restore deadline.

ParameterTypeRequiredDescription
designIdstringyes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_list_trash

The designs in the trash that you could restore — ones you deleted, or ones you own — most recently deleted first, each with who deleted it and its `restorableUntilEpochMillis`. Use it to undo a ui_builder_delete_design you regret, or to check what a cleanup removed. Takes no arguments.

ParameterTypeRequiredDescription
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_restore_design

Bring a deleted design back out of the trash exactly as it was: the same revision, history, access list, overlay and discussion. Allowed to whoever could have deleted it, until its `restorableUntilEpochMillis`; after that it is not found. The reply is the design's listing entry.

ParameterTypeRequiredDescription
designIdstringyes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_list_comments

Read the discussion on a design: every thread, where each is pinned — a markup stroke, a design node, or a point on the frame — whether it is resolved, and every reply under it. `sequence` rises on each change and is the cursor to quote to ui_builder_await_comments. Comments are kept beside the design and are never part of it: no node holds them and no export sees them. Each thread carries `acknowledgedBy`, so you can see what you have already caught up with; say you have read the rest with ui_builder_acknowledge_comment.

ParameterTypeRequiredDescription
designIdstringyes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_post_comment

Say something on a design — a reply into `threadId`, or a new thread when it is omitted. Pin a new thread with `markId` (a stroke on the reference overlay), `nodeId` (a node in the design), or `x`/`y` in frame fractions, so the person reading it can see what you meant. The comment is attributed to your own grant; you cannot post as somebody else.

ParameterTypeRequiredDescription
designIdstringyes
threadIdstringnoReply into this thread. Omit to start one.
bodystringyes
displayNamestringnoThe name to show beside your actor id.
markIdstringnoPin to a markup stroke on the reference.
nodeIdstringnoPin to a design node.
xnumbernoPin to a point on the frame, 0..1 across.
ynumbernoPin to a point on the frame, 0..1 down.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_resolve_comment_thread

Close a comment thread once it is answered, or reopen one by passing `resolved: false`. The resolution is attributed to you and is reversible.

ParameterTypeRequiredDescription
designIdstringyes
threadIdstringyes
resolvedbooleannoDefaults to true.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_acknowledge_comment

Say that you have read a comment thread — which is **not** the same as resolving it. Resolving claims the question is settled; acknowledging claims only that you have seen it, which is the honest thing to say while you are still working on what it asked for. Omit `threadId` to acknowledge the whole discussion, which is what you mean after reading it with ui_builder_list_comments. Acknowledgement is per actor, so a thread you have read is still waiting for the other people in the design, and it is what clears the `comments` block the server puts on your ui_builder_apply, ui_builder_get_design, ui_builder_export and ui_builder_put_asset replies.

ParameterTypeRequiredDescription
designIdstringyes
threadIdstringnoOne thread. Omit for every thread on the design.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_react_to_comment

React to one comment with an emoji, or take the reaction back with `on: false`. The lightest thing you can say: on a comment you have just picked up, on a fix somebody made, where a reply would be noise in a thread a person has to read. `commentId` is the `id` of a comment inside a thread, from ui_builder_list_comments. Reacting also acknowledges that thread for you, so it counts as the lightest acknowledgement; it says nothing about whether the question is settled.

ParameterTypeRequiredDescription
designIdstringyes
commentIdstringyesThe comment to react to, from its thread's `comments`.
reactionstringyesOne emoji, at most 24 characters.
onbooleannoFalse takes your reaction back. Defaults to true.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_await_comments

Wait for the discussion to move past `afterSequence` and return it, rather than polling for it. Returns as soon as anybody — a designer in the browser or another agent — posts, resolves or deletes; returns a `timedOut` reply if nothing happens within `waitSeconds`, which you answer by calling again with the same cursor. This is how you hold a conversation about a design: post, wait, read, act.

ParameterTypeRequiredDescription
designIdstringyes
afterSequenceintegeryesThe `sequence` you last saw. 0 for anything at all.
waitSecondsintegernoUp to 120. Defaults to 25.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_render_native

Compile a design and render it with real Compose on this host, rather than in the browser's Wasm canvas — the way to see what a design looks like on Android. Returns the first frame, the token the live frame stream is opened with, and the design node ids the render is tagged with, so `catalog_get_preview_data` can report each node's bounds and a client can put selectable regions over the image. This host has a native render lane. The reply is not an McpResponseEnvelopeV1: the released contract defines no request type for a native render.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegernoA past revision. Omit for the current one.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_view

See a design the way a person in the editor sees it: a PNG of the canvas with the overlays drawn on — the `selection` outline, the `reference` picture when one is attached, the discussion's `comments` pins, and the layout `bounds` — and beside it JSON with the revision, each visible node's id and box, each pin's thread and position, all in the returned image's pixels. The picture is a short-lived signed https link by default; `inline: true` puts the bytes in the reply as well. The frame is the PNG export (`renderer: "export"`, the editor's own renderer), which reports no node boxes; `renderer: "native"` draws real Compose on a host with a native render lane, reports every node's box so the selection can be outlined, and needs the ui-builder-export capability. With no `renderer`, a non-empty `selection` is drawn on the native frame when the host has a lane and the caller the capability, and otherwise on the export with a note saying why it is not outlined. A node with no box is reported in `notes`, never drawn at a guessed position. For a `wff-watchface` design, `frames` (2-12) over `durationMs`, or explicit `times`, draws the face at several instants instead — use it to check motion: a second hand's sweep, a seconds pulse, anything driven by `[SECOND_MILLISECOND]`, `[MILLISECOND]` or `[UTC_TIMESTAMP]` — and `ambient: true` draws ambient mode (alone: interactive and ambient side by side, to check the transition). The reply is one picture, by default a `filmstrip` grid with ea…

ParameterTypeRequiredDescription
designIdstringyes
revisionintegernoA past revision. Omit for the current one.
viewportobjectnoFit the picture inside this many pixels, keeping its aspect ratio. Omit for the render's own size.
includearray<enum: "reference" | "bounds" | "selection" | "comments">noOverlays to draw. Defaults to comments, reference, selection; [] draws the bare frame.
selectionarray<string>noNode ids to show as selected.
rendererenum: "export" | "native"noDefaults to export, or native when a selection is to be outlined and this host and grant can render it.
inlinebooleannoAlso return the PNG as an image block. Defaults to false; a host with no public origin always does.
framesintegernowff-watchface only: draw this many frames spread evenly over `durationMs`, starting at the current whole second. Defaults to 6 when only `durationMs` is given.
durationMsintegernowff-watchface only: the window the frames cover, in milliseconds. Defaults to 1000.
timesarray<integer>nowff-watchface only: the exact instants to draw, in epoch milliseconds, instead of `frames` and `durationMs`.
ambientbooleannowff-watchface only: draw the frames in ambient mode, applying the design's `wff/variant mode=AMBIENT` overrides. Alone, draws the interactive and ambient modes side by side.
formatenum: "filmstrip" | "animated"noWith motion frames: `filmstrip` (default) is one labelled PNG grid, the easiest to read; `animated` is an animated PNG.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_check_design

Check a design before you show it to anybody — one call instead of validate, view and an accessibility pass. Runs `schema` (document shape), `catalog` (the pinned catalog's validation, the mutation reducer and the Compose export gate — what ui_builder_validate runs) and `a11y`: controls with no label, icons and pictures with no `contentDescription`, touch targets under 48dp, text and icon contrast under WCAG 4.5:1 / 3:1, and text in a fixed height that clips at 200% font scale. Check a stored design (`designId`, optionally a past `revision`), a whole `document`, or `operations` applied to a scratch copy of `designId` exactly as ui_builder_apply would — nothing is saved. Returns `summary` first, then `ok`, the counts, and `findings` with the `nodeId` each is about, so you can fix them with ui_builder_apply and check again. `rendered: true` measures touch targets on a native render where the host has one (needs the ui-builder-export capability). Contrast against theme roles is resolved with the Material 3 baseline scheme, in both the light and the dark theme when a colour follows the theme (the finding names the theme that fails), and reported as a warning, never an error. `hostLogic` checks a design's host logic would run (it loads, exports `init` and `onAction`, and `init` answers what the design can hold); a design without host logic passes it for free. `guidelines` runs only when named: a model judges the design against the Android design guides (developer.android.com) for…

ParameterTypeRequiredDescription
designIdstringnoA stored design to check, or to check `operations` against.
revisionintegernoA past revision of `designId`. Omit for the current one.
documentobjectnoA whole DesignDocumentV1 to check instead of a stored design.
operationsarray<object>noDesignMutationV1 objects to apply to a scratch copy of `designId` and check — a dry run.
baseRevisionintegernoThe revision `operations` were written against; a stale one is a warning.
checksarray<enum: "schema" | "catalog" | "a11y" | "hostLogic" | "guidelines">noWhich checks to run. Defaults to schema, catalog, a11y, hostLogic; `guidelines` runs only when named.
renderedbooleannoMeasure touch targets on a native render, and show it to the guidelines model. Exported Kotlin that fails to compile there is an error finding (check `native`). Defaults to false.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_simulate_action

Run a stored design's host logic — the JavaScript in its `hostLogic` that stands in for the host feeding it, answering host actions by setting host inputs — headless, without a browser: `init`, then each of `actions` in order, as the editor's canvas runs it. Each action is `{"name": …, "value": …}`, exactly what a design's host action sends (a value is text, a whole number or a decimal; omit it for none). Returns `summary` first, then `ok` and `steps`: for `init` and each action, the program's private `state`, every host input's `values` as the canvas would draw them, which inputs the step `set`, and the `error` when its answer could not be used. A failing step keeps the values before it and the next action is still sent; a program that overruns its budget stops the run (`stopped`). Use it to show the logic works (a calculator shows 3 after `1 + 2 =`) and to find which key breaks it. Nothing is saved. At most 200 actions.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegernoA past revision. Omit for the current one.
actionsarray<object>noHost actions to answer, in order, after init. Omit to run init alone.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_guidelines_prompt

Read the exact prompt a design-guidelines model is given for a design, before anybody spends a key on it: the rules for the design's platform (Android design guidance from developer.android.com, each with its source), the fixed system prompt, the user message with the design tree and Compose source, the JSON schema the verdicts must follow, a sentence on where each part comes from, and the pictures as image blocks — a Wear screen on its device (and unrolled when it scrolls), a Wear widget in the Samsung and Pixel Watch containers, a phone or tablet design at phone and tablet size. It spends no key. Judge it with your own model, then record the verdicts with ui_builder_record_guidelines so the editor and other agents see them. `rendered: false` leaves out the pictures and source (and the visual rules), and needs only read access; otherwise it needs the ui-builder-export capability.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegernoA past revision. Omit for the current one.
renderedbooleannoAttach native renders and the Compose source. Defaults to true.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_get_guidelines

Read a design's latest design-guidelines result, whoever ran it — a person in the editor on their own key, ui_builder_check_design on this host's key, or an agent that recorded verdicts with ui_builder_record_guidelines. Returns the record (model, revision, rules asked, verdicts, `ranBy`), the findings it implies, and `stale: true` when the design has changed since it was checked.

ParameterTypeRequiredDescription
designIdstringyes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_record_guidelines

Record your own model's verdicts on ui_builder_guidelines_prompt as the design's latest design-guidelines result, so the editor's Issues panel and other agents show them. Pass the `revision` and rule ids the prompt asked (`rules.asked[].id`), and one verdict per rule you answered: `pass`, `fail` or `not_applicable`, with `confidence` 0..1, the `nodeIds` it is about and a one-sentence `reason`. `ranBy` is taken from your credential. Returns what ui_builder_get_guidelines returns.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegeryesThe revision the prompt was built from.
modelstringyesThe model that judged it, e.g. anthropic/claude-haiku-5.5.
rulesVersionintegernoThe prompt's `rules.version`. Defaults to this host's.
askedarray<string>yesThe rule ids the prompt asked.
verdictsarray<object>yes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_render_design_matrix

See one design on several devices in ONE picture: a contact sheet with a captioned cell per device × theme × font scale, plus each cell's device, size and box on the sheet. Nothing is saved — the design's environment is swapped on a scratch copy for each cell. Name `devices` by preset (phone_small, phone, phone_landscape, foldable_folded, foldable_unfolded, tablet_portrait, tablet_landscape, wear_small_round, wear_large_round, wear_square, tv_1080p, widget_small_round, widget_small_squircle, widget_small_rectangular, widget_large_round, widget_large_squircle, widget_large_rectangular) or as {widthDp, heightDp, label?, round?}; or a `formFactor` (phone, foldable, tablet, wear, tv, widget, adaptive) for its default set; with neither you get the design's own form factor — phone, foldable and tablet for a mobile catalog, the round watches for Wear, and for a Wear widget (a `widget-container-*` root) its own container in each widget host: Samsung round, Pixel Watch squircle and rectangular, at the container's frame. Widget host cells are drawn natively in that host when the caller holds ui-builder-export and the host has a native lane (`renderer: "native"`); otherwise by the editor's export, masked to the host's outline. Add `themes: ["light","dark"]` and `fontScales: [1, 2]` to cross them; at most 16 cells. The sheet is a short-lived signed https link kept under 3.5 MB, so a chat surface can show it inline; `inline: true` puts the bytes in the reply as well.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegernoA past revision. Omit for the current one.
devicesarray<enum: "phone_small" | "phone" | "phone_landscape" | "foldable_folded" | "foldable_unfolded" | "tablet_portrait" | "tablet_landscape" | "wear_small_round" … | object>noDevices to draw. Omit for the form factor's defaults.
formFactorenum: "phone" | "foldable" | "tablet" | "wear" | "tv" | "widget" | "adaptive"noA default device set, instead of `devices`.
themesarray<enum: "light" | "dark">noDefaults to the design's own theme.
fontScalesarray<number>noDefaults to the design's own font scale.
inlinebooleannoAlso return the PNG as an image block. Defaults to false; a host with no public origin always does.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_record_decision

Record a review verdict — `approve` or `reject` — on one revision of a design, with an optional note. Kept beside the design, like comments: it never moves the revision. Recorded as an agent's decision, so a person waiting with ui_builder_await_decision's default `from: "human"` is not answered by it. Pass your own `decisionId` to make a retry idempotent.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegeryesThe revision the verdict is about.
verdictenum: "approve" | "reject"yes
notestringnoWhy, in a sentence or two.
decisionIdstringnoYour id for this decision; makes a retry idempotent.
displayNamestringno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_await_decision

Wait for somebody to approve or reject a design, rather than asking again whether they have. Returns as soon as a decision lands after `afterSequence` — by default only a person's (`from: "human"`), on any revision unless you name one — or a `timedOut` reply after `waitSeconds`. Every reply carries `latest` (the newest matching verdict, new or not) and `approved`, so `waitSeconds: 0` is a cheap, idempotent poll for a routine that can only check back later; quote the reply's `sequence` as the next `afterSequence`. People record theirs over the design's `decisions` HTTP route.

ParameterTypeRequiredDescription
designIdstringyes
afterSequenceintegernoThe `sequence` you last saw. 0 for anything at all.
revisionintegernoOnly decisions on this revision.
fromenum: "human" | "anyone"noWhose decisions count. Defaults to human.
waitSecondsintegernoUp to 120. Defaults to 25; 0 checks without blocking.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_set_implementation

Record the pull request that implements a design: its URL, its `status` (draft, open, merged, closed), the design `revision` it implements, and — once you have compared the PR's rendered previews with the design — `previewMatch` {status: match|mismatch|unknown, evidence: a URL to the comparison, note}. Replaces the whole record; pass only `designId` to clear it. Writing the same record again changes nothing and wakes nobody. Needs write access to the design.

ParameterTypeRequiredDescription
designIdstringyes
prstringnoThe pull request URL.
statusenum: "draft" | "open" | "merged" | "closed"noDefaults to open.
revisionintegernoThe design revision the PR implements.
previewMatchobjectno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_implementation_status

Everything the code side needs to implement a design, in one call: the revision, its links (issue, reference, PR, thread), the implementation PR with its status and whether its previews were found to match, the latest verdict on this revision, and the Compose export with the generator's diagnostics. `summary` says in one line whether the PR implements this revision and whether it was approved. `includeExport: false` leaves the Kotlin out and needs only read access; with it the call needs the ui-builder-export capability.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegernoA past revision. Omit for the current one.
includeExportbooleannoInclude the Compose export. Defaults to true.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_find_design_for_pr

From a pull request back to the design(s) it implements: every design you can read whose implementation record or links name `pr`, with the implementation status and revision. Then call ui_builder_implementation_status for what the design expects.

ParameterTypeRequiredDescription
prstringyesThe pull request URL, exactly as recorded.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_set_reference

Attach the picture a design is being built against — a Figma frame, a screenshot of a shipped screen, a mock — as its reference overlay, or `clear` it. The same overlay the browser editor's Frame, density and reference panel shows, so a person opening the design sees what you attached. Kept beside the design and never part of it: no node holds it, no export sees it, the revision does not move. Send PNG, JPEG, WebP or SVG bytes in `imageBase64`. For a Figma frame, fetch the picture with your Figma tools (a screenshot of the node) and pass the frame's URL as `sourceUrl`; this host fetches nothing itself. State the export scale as `density` (2 for a Figma 2x export) or in the name (`[email protected]`): without it a screen-shaped picture is read across the frame's width and anything else at the design's own density. The reply says what the picture is against the frame — size in dp, density, whether it is a screen or a region — and whether pixel comparison means anything. Marks drawn in the editor are kept; the alignment is reset, as a new picture in the editor does. A user-supplied image is stored on this host: say so, and attach it only with their permission.

ParameterTypeRequiredDescription
designIdstringyes
imageBase64stringnoThe picture, base64. PNG, JPEG, WebP or SVG; at most the host's reference size limit.
namestringnoWhat the editor calls it. An `@2x` suffix declares the density.
densitynumbernoThe picture's pixels per dp, e.g. 2 for a 2x export, 2.625 for a Pixel screenshot.
sourceUrlstringnoWhere it came from, such as the Figma frame URL. Provenance only; never fetched.
clearbooleannoRemove the reference, its marks and pieces instead.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_compare_reference

Measure a design against its reference overlay (attach one with ui_builder_set_reference). Returns what the picture is against the frame and whether a pixel comparison means anything (`facts.pixelComparable` — a 328×56 dp crop stretched over a screen is not comparable until measured at its `actual` size); with `differences`, the share of pixels that differ and up to eight regions in dp, each with the layer it falls in; and for each of `nodeIds`, where that layer sits in the reference — from a box drawn over it in the editor, or a search of the reference's pixels, which for text also reads the font size — with the `alignment` that would make it agree (move, size, font size) and the exact `operations` to pass to ui_builder_apply. Nothing is written: apply the operations you agree with, then compare again and look with ui_builder_view. Layer matching needs node boxes, so `nodeIds` measures the native render (an export grant); differences alone use the PNG export. Treat `confident: false` as a hint to check, not an edit to make.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegernoMeasure this revision. Defaults to the current one.
differencesbooleannoMeasure where the frame differs. Defaults to true.
nodeIdsarray<string>noLayers to match against the reference, each with a proposed alignment.
fitenum: "contain" | "width" | "actual"noHow the picture is placed: contained and centred, across the width from the top, or at its own size from the top-left. Defaults to the fit the picture calls for (facts.recommendedFit).
rendererenum: "export" | "native"noWhich render to measure. Defaults to native when nodeIds is given, export otherwise.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_list_revisions

A design's retained revisions, newest first: each one's number, who made it, when, the operation that produced it (`setProperty ×2, insertNode`, `undo`, `restored r3`) and its document digest. `retention` says how far back the history still reaches — older revisions are gone, and get, diff, restore and fork stop at that floor. Page with `before`. Read access.

ParameterTypeRequiredDescription
designIdstringyes
limitintegernoRevisions per page. Defaults to 20.
beforeintegernoOnly revisions older than this one; pass the previous reply's `nextBefore`.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_diff_designs

Compare two designs, or two retained revisions of one: nodes added, removed and moved, and properties, modifiers and other fields changed, each with its node id and path (`root/slot[index]/node`), plus changed document fields (title, environment, state). Works across a design and its fork. `b` defaults to the current revision of `a`'s design. Values are the protocol's own JSON, ready to send back through ui_builder_apply. Read access to both.

ParameterTypeRequiredDescription
aobjectyes
bobjectno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_restore_revision

Make a retained revision the design's current content again, **forward**: it is committed as a new revision and nothing after it is lost, so a restore is undone by restoring again. `baseRevision` must be the current revision (a restore that raced an edit is refused as stale). `dryRun: true` writes nothing and returns the diff the restore would apply. Needs write access to the design.

ParameterTypeRequiredDescription
designIdstringyes
revisionintegeryesThe retained revision to restore.
baseRevisionintegeryesThe design's current revision, from ui_builder_get_design or ui_builder_list_revisions.
dryRunbooleannoReturn the diff without restoring. Defaults to false.
operationIdstringnoMakes a retry idempotent. Defaults to a fresh id.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_fork_design

Make a new design from one revision of another — yours to edit, owned by you, with its parent recorded: the fork's `forkedFrom` (design, revision, document digest) and the parent's `forks` both show in ui_builder_get_links. A fork is not a branch: it never inherits the parent's canonical home and nothing flows back on its own, so tell the person it exists and bring a chosen change back with ui_builder_apply on the parent. Needs write access on this server and read access to the parent.

ParameterTypeRequiredDescription
designIdstringyesThe design to fork.
revisionintegernoA retained revision. Omit for the current one.
titlestringnoThe fork's title. Defaults to the parent's, marked with the revision.
newDesignIdstringnoThe fork's id. Defaults to one derived from the parent; an id already taken is refused.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_branch_design

Fork a design at a revision into a **branch** to explore an alternative, or to change it without trampling somebody editing it live. A branch is a design with its own id: edit it with ui_builder_apply, look at it with ui_builder_view or ui_builder_get_design, compare it with ui_builder_diff_designs, then bring it back with ui_builder_merge_branch or drop it with ui_builder_archive_branch. Branch N times from the same revision to try N alternatives: merging one archives the others. Branches of a branch are refused; so are asset uploads, restores and document replacements on a branch. Needs write access to the design.

ParameterTypeRequiredDescription
designIdstringyesThe design to branch.
namestringyesWhat this alternative is, e.g. `compact header`.
revisionintegernoA retained revision to fork at. Omit for the current one.
branchIdstringnoThe branch's design id. Defaults to one minted from the parent's; naming one makes a retry idempotent.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_list_branches

A design's branches, newest first: each one's id, name, owner, status (open, merged, archived), fork revision, head revision and the number of commands a merge would replay; for a merged one the parent revision it landed at, for an archived sibling the branch whose merge superseded it. Read access to the design.

ParameterTypeRequiredDescription
designIdstringyesThe parent design.
statusenum: "open" | "merged" | "archived" | "all"noOnly branches in this state. Defaults to all.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_merge_branch

Replay a branch's edits onto its parent's current revision through the same reducer every edit goes through — all or nothing. The reply reports every command: `applied` with the revision it landed at and any `STALE_*` notice of what it overwrote, or `refused` with the rejection code that stopped the run (nothing is then written), plus `skippedOperationIds` and how many were never tried. Run `dryRun: true` first: it reports `merged: false` and `wouldMerge` (true when every command would land) and writes nothing. Resolve a refusal by passing that command's id in `skipOperationIds` (skip an undo with what it undoes), or branch again from the parent. On success the branch is merged and its open siblings — branches forked at the same revision — are archived. Needs write access to the parent.

ParameterTypeRequiredDescription
branchIdstringyes
dryRunbooleannoReplay and report without writing anything: the reply's merged is then false and wouldMerge carries the verdict. Defaults to false.
skipOperationIdsarray<string>noLogged commands to leave out of the replay.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_archive_branch

Close a branch without merging it: it stays readable and listed, and can no longer be edited or merged. Needs write access to the parent, or to have made the branch.

ParameterTypeRequiredDescription
branchIdstringyes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_compare_branches

Put a design's alternatives side by side in one call: the parent's head and each open branch (or the `branchIds` named) rendered into ONE picture — a short-lived signed https link, numbered by caption — plus, per branch, what it changes against the parent at its fork (counts and a few lines, as ui_builder_diff_designs reports them). Show the person the picture and the numbered list, then ask with ui_builder_pick_branch; merge the choice with ui_builder_merge_branch. Writes nothing. Read access to the design.

ParameterTypeRequiredDescription
designIdstringyesThe parent design.
branchIdsarray<string>noOnly these branches of the design, in this order. Defaults to every open branch, oldest first.
devicestring | objectnoRender every picture at this device instead of each design's own size: a preset id (phone_small, phone, phone_landscape, foldable_folded, foldable_unfolded, tablet_portrait, tablet_landscape, wear_small_round, wear_large_round, wear_square, tv_1080p, widget_small_round, widget_small_squircle, widge…
inlinebooleannoAlso return the picture as an image block. Defaults to false: the signed link.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_pick_branch

Ask the person which alternative (open branch) of a design to keep, and return their choice. In ChatGPT or Codex it is a thumbnail picker, one option per branch; with plain form elicitation it is a single-choice form; otherwise — and in chat tools like Slack — it returns a numbered list and one picture for YOU to post, and the person replies with a number. It never waits on a client that cannot answer. `outcome` is `chosen` (with `branchId`), `declined`, `ask-in-chat` or `no-branches`. Writes nothing: merge the chosen branch with ui_builder_merge_branch (dryRun first). Read access to the design.

ParameterTypeRequiredDescription
designIdstringyesThe parent design.
branchIdsarray<string>noOnly these open branches, in this order. Defaults to every open branch, oldest first.
messagestringnoThe question to put to the person. Defaults to asking which alternative to keep.
inlinebooleannoWith a numbered list, also return its picture as an image block.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_edit_design

Open a UI Builder design in the editor, as an app in this conversation, for the person to edit by hand. Takes the designId (from ui_builder_list_designs). The editor reads and saves the design itself; to change a design yourself use ui_builder_apply.

ParameterTypeRequiredDescription
designIdstringyesThe design to open.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_editor_read

The UI Builder editor app's load: the design's document, revision and whether this caller may write it. Called by the app, not the model.

ParameterTypeRequiredDescription
designIdstringyes
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_editor_write

The UI Builder editor app's save: the whole document at baseRevision. Answers saved, conflict, read-only or too-large. Called by the app, not the model.

ParameterTypeRequiredDescription
designIdstringyes
baseRevisionintegeryes
documentobjectyesThe whole DesignDocumentV1.
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

ui_builder_editor_await

The UI Builder editor app's follow: returns as soon as the design's revision passes afterRevision, or after waitSeconds (at most 25) with changed false. Called by the app, not the model.

ParameterTypeRequiredDescription
designIdstringyes
afterRevisionintegeryes
waitSecondsintegerno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
agentNamestringnoOptional agent/client name shown to design viewers; self-reported.
agentModelstringnoOptional current model name shown to design viewers; self-reported. Omit when unknown.

catalog_list_data_products

List the structured data-product kinds of one catalog, optionally one preview. Name the catalog with 'catalog' (ids from catalog_list_projects) or a preview 'uri'.

ParameterTypeRequiredDescription
catalogstringno
previewIdstringno
uristringno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

catalog_get_preview_data

Fetch the merged accessibility, annotation, or watchface/complications product for a preview. This lane requires live grant scope.

ParameterTypeRequiredDescription
uristringno
catalogstringno
previewIdstringno
kindstringyes
overridesobjectno
complicationsarray<object>no
watchFaceobjectnoThe state the preview's own face is drawn in; not a face of its own.
ambientbooleanno
ambientBurnInbooleanno
ambientLowBitbooleanno
clockEpochMillisintegerno
previewTimestringno
wfRendererstringno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

list-all-documentation

Storybook-MCP-compatible alias that lists every preview as a story.

ParameterTypeRequiredDescription
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

get-documentation-for-story

Storybook-MCP-compatible preview metadata lookup.

ParameterTypeRequiredDescription
storyIdstringno
idstringno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

preview-stories

Storybook-MCP-compatible rendering of one or more story ids. Requires live scope.

ParameterTypeRequiredDescription
storyIdsarray<string>no
storyIdstringno
idsarray<string>no
idstringno
observeenum: "png" | "svg" | "scroll-png" | "scroll-svg" | "semantics" | "hash"no
overridesobjectno
tokenstringnoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://preview.coo.ee/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http compose-preview https://preview.coo.ee/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : compose-preview ; URL : https://preview.coo.ee/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : compose-preview ; Server URL : https://preview.coo.ee/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "compose-preview": {
      "url": "https://preview.coo.ee/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "compose-preview": {
      "type": "http",
      "url": "https://preview.coo.ee/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "compose-preview": {
      "url": "https://preview.coo.ee/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "compose-preview": {
      "httpUrl": "https://preview.coo.ee/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.compose-preview]
url = "https://preview.coo.ee/mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

Compose Preview Catalogs · L’Atlas · Tested on

Markdown
[Compose Preview Catalogs — L’Atlas](https://latlas.dev/en/mcp/io.github.yschimke/compose-preview)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 30 Nov 2026. L’Atlas adds no data beyond this source and its own tests.