ui_builder_preview_catalog_recovery
Dry-run recovery of a design whose stored catalog pin no longer resolves (catalogUnavailable from ui_builder_get_design). The server selects the exact currently served pin for the same catalog system and returns a CatalogUpgradePreviewV1: status (ready or blocked), changes, issues, and the hashes the move is checked against. This call never writes. When status is ready the reply also carries apply: the complete arguments for ui_builder_apply — send that object as they are and the design moves onto the served pin, recorded as a new revision. Assembled by hand it is operations: [{"type":"upgradeCatalog", sourceCatalogPin, targetCatalogPin, sourceDocumentHash, targetDocumentHash, previewDigest}] with baseRevision set to the preview's baseRevision, where targetDocumentHash is the preview's candidateDocumentHash and the other four are copied by name. A blocked preview has no apply: its error-severity issues say what the served catalog no longer accepts. The candidate document itself is omitted, since it is the whole design again; includeCandidate: true returns it.
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>"
},
"name": "ui_builder_preview_catalog_recovery"
}
}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. | |
| designId | Yes | ||
| 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. | |
| includeCandidate | No | Return `preview.candidateDocument`, the whole design as it would be on the served pin. Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||