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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Whose decisions count. Defaults to human. | |
| 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. | |
| designId | Yes | ||
| revision | No | Only decisions on this revision. | |
| agentName | No | Optional agent/client name shown to design viewers; self-reported. | |
| agentModel | No | Optional current model name shown to design viewers; self-reported. Omit when unknown. | |
| waitSeconds | No | Up to 120. Defaults to 25; 0 checks without blocking. | |
| afterSequence | No | The `sequence` you last saw. 0 for anything at all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latest | No | ||
| schema | Yes | ||
| summary | Yes | ||
| approved | Yes | ||
| designId | Yes | ||
| sequence | Yes | ||
| timedOut | Yes | ||
| decisions | No |