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.
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 | With a numbered list, also return its picture as an image block. | |
| message | No | The question to put to the person. Defaults to asking which alternative to keep. | |
| designId | Yes | The parent design. | |
| agentName | No | Optional agent/client name shown to design viewers; self-reported. | |
| branchIds | No | Only these open branches, 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 |
|---|---|---|---|
| via | No | ||
| image | No | ||
| schema | Yes | ||
| options | No | ||
| outcome | Yes | ||
| summary | Yes | ||
| branchId | No | ||
| designId | Yes | ||
| imageBase64 | No |