@maxhealth.tech/prefab / mcp / displayError
Variable: displayError
ts
const displayError: (title, message, options?) => McpDisplayResult<PrefabWireFormat> = display_error;Defined in: mcp/display.ts:369
MCP display helpers — return prefab UIs as MCP tool results.
Return a standardized error view as an MCP tool result.
Renders a destructive Alert with title + message, optional detail code block, and optional hint. Sets isError: true on the MCP result.
Parameters
| Parameter | Type |
|---|---|
title | string |
message | string |
options? | DisplayErrorOptions |
Returns
McpDisplayResult<PrefabWireFormat>
MCP tool result with error UI and isError flag.