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. A node with no box is reported, never drawn at a guessed position. Not an McpResponseEnvelopeV1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | A 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. | |
| inline | No | Also return the PNG as an image block. Defaults to false; a host with no public origin always does. | |
| include | No | Overlays to draw. Defaults to comments, reference, selection; [] draws the bare frame. | |
| designId | Yes | ||
| renderer | No | Defaults to export. | |
| revision | No | A past revision. Omit for the current one. | |
| viewport | No | Fit the picture inside this many pixels, keeping its aspect ratio. Omit for the render's own size. | |
| selection | No | Node ids to show as selected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | ||
| image | Yes | ||
| nodes | No | ||
| notes | No | ||
| schema | Yes | ||
| include | Yes | ||
| comments | No | ||
| designId | Yes | ||
| renderer | Yes | ||
| revision | Yes | ||
| reference | No | ||
| selection | Yes | ||
| imageBase64 | No | ||
| boundsUnavailable | No |