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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"designId": "<designId>",
"revision": "<revision>",
"verdict": "<verdict>"
},
"name": "ui_builder_record_decision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why, in a sentence or two. | |
| 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. | |
| verdict | Yes | ||
| designId | Yes | ||
| revision | Yes | The revision the verdict is about. | |
| 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. | |
| decisionId | No | Your id for this decision; makes a retry idempotent. | |
| displayName | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latest | No | ||
| schema | Yes | ||
| summary | Yes | ||
| approved | Yes | ||
| designId | Yes | ||
| sequence | Yes | ||
| timedOut | Yes | ||
| decisions | No |