ui_builder_restore_revision
Make a retained revision the design's current content again, forward: it is committed as a new revision and nothing after it is lost, so a restore is undone by restoring again. baseRevision must be the current revision (a restore that raced an edit is refused as stale). dryRun: true writes nothing and returns the diff the restore would apply. Needs write 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. | |
| dryRun | No | Return the diff without restoring. Defaults to false. | |
| designId | Yes | ||
| revision | Yes | The retained revision to restore. | |
| 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. | |
| operationId | No | Makes a retry idempotent. Defaults to a fresh id. | |
| baseRevision | Yes | The design's current revision, from ui_builder_get_design or ui_builder_list_revisions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | ||
| stale | Yes | ||
| dryRun | Yes | ||
| schema | Yes | ||
| applied | Yes | ||
| summary | Yes | ||
| designId | Yes | ||
| revision | Yes | ||
| operationId | No | ||
| baseRevision | Yes | ||
| documentDigest | No | ||
| currentRevision | Yes | ||
| committedRevision | No |