ui_builder_export_document
Compile supplied DesignDocumentV1 content without saving it or reading an existing design. Use an exact catalog pin from ui_builder_list_catalogs. Supports PNG, Remote JSON and RC; returns the same artifact and located diagnostics as saved-document export.
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": {
"document": "<document>",
"format": "<format>"
},
"name": "ui_builder_export_document"
}
}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. | |
| format | Yes | ||
| document | Yes | Complete DesignDocumentV1 content, including its catalog pin. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||