@maxhealth.tech/prefab / mcp / A2uiResourceOptions
Interface: A2uiResourceOptions
Defined in: mcp/a2ui.ts:113
Extends
A2uiEmitOptions
Properties
surfaceId?
optional surfaceId?: string;Defined in: a2ui/emit.ts:45
Surface id. Must be unique for the renderer's lifetime.
Default
'prefab'Inherited from
A2uiEmitOptions.surfaceIdcatalogId?
optional catalogId?: string;Defined in: a2ui/emit.ts:50
Catalog the surface's components are drawn from.
Default
the A2UI Basic catalogInherited from
A2uiEmitOptions.catalogIdstream?
optional stream?: boolean;Defined in: a2ui/emit.ts:57
Split the output into createSurface + updateComponents + updateDataModel instead of inlining everything into createSurface. Streaming transports want the split so the renderer can paint early; a single stored payload does not.
Default
falseInherited from
A2uiEmitOptions.streamsendDataModel?
optional sendDataModel?: boolean;Defined in: a2ui/emit.ts:59
Ask the renderer to echo the data model back on every event.
Default
falseInherited from
A2uiEmitOptions.sendDataModelwarn?
optional warn?: boolean;Defined in: a2ui/emit.ts:61
Log degradations and dropped nodes at warn level.
Default
falseInherited from
A2uiEmitOptions.warnuri?
optional uri?: string;Defined in: mcp/a2ui.ts:115
Resource URI. Must start with a2ui://.
Default
'a2ui://prefab/surface'title?
optional title?: string;Defined in: mcp/a2ui.ts:117
Resource title shown in listings.
Default
'Prefab Surface'description?
optional description?: string;Defined in: mcp/a2ui.ts:119
Human-readable description for the listing.
cache?
optional cache?: McpCacheHint;Defined in: mcp/a2ui.ts:121
Cache fields for the resources/read result (SEP-2549).
onDiagnostics?
optional onDiagnostics?: (diagnostics) => void;Defined in: mcp/a2ui.ts:123
See DisplayA2uiOptions.onDiagnostics.
Parameters
| Parameter | Type |
|---|---|
diagnostics | A2uiDiagnostic[] |
Returns
void