@maxhealth.tech/prefab / mcp / display
Function: display()
ts
function display(viewOrApp, options?): McpDisplayResult<PrefabWireFormat>;Defined in: mcp/display.ts:72
Wrap a Component (or PrefabApp) as an MCP tool result.
If given a Component, it's wrapped in a PrefabApp automatically. If given a PrefabApp, it's serialized as-is.
Parameters
| Parameter | Type |
|---|---|
viewOrApp | Component | PrefabApp |
options? | DisplayOptions |
Returns
McpDisplayResult<PrefabWireFormat>
MCP tool result with the prefab wire format JSON as text content.