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.
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. | |
| device | No | Render 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, widget_small_rectangular, widget_large_round, widget_large_squircle, widget_large_rectangular) or {"widthDp","heightDp"}. Nothing is saved. | |
| inline | No | Also return the picture as an image block. Defaults to false: the signed link. | |
| designId | Yes | The parent design. | |
| agentName | No | Optional agent/client name shown to design viewers; self-reported. | |
| branchIds | No | Only these branches of the design, in this order. Defaults to every open branch, oldest first. | |
| agentModel | No | Optional current model name shown to design viewers; self-reported. Omit when unknown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| image | No | ||
| device | No | ||
| parent | No | ||
| schema | Yes | ||
| columns | No | ||
| summary | Yes | ||
| branches | No | ||
| designId | Yes | ||
| imageBase64 | No | ||
| parentRevision | Yes |