Skip to content

@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

ParameterType
viewOrAppComponent | PrefabApp
options?DisplayOptions

Returns

McpDisplayResult<PrefabWireFormat>

MCP tool result with the prefab wire format JSON as text content.

Released under the MIT License.