ui_builder_replace_design_document
Replace one stored design from a complete DesignDocumentV1 copy — the authoritative save-back and re-import operation. The document must name the same design and the same canonical home you read from ui_builder_get_design; baseRevision must still be current. The runtime validates the complete document and quotas, preserves server-owned identity, access and creation time, retains the old revision, and broadcasts a whole snapshot. Retry with the same operationId; never invent a new id after a lost response. Unless the person already chose to save back or re-import onto this home, call first with dryRun: true: it changes nothing and returns the choices to put to them — or, when your client supports form elicitation on this connection, asks them in a form and returns the outcome of the write they chose.
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. | |
| dryRun | No | Validate and return the person's choices without changing anything. | |
| designId | Yes | ||
| document | Yes | The complete replacement DesignDocumentV1, including the existing home. | |
| operationId | Yes | Your stable id; makes a retry idempotent. | |
| baseRevision | Yes | The exact current revision being replaced. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||