@maxhealth.tech/prefab / mcp / display_error
Function: display_error()
ts
function display_error(
title,
message,
options?): McpDisplayResult<PrefabWireFormat>;Defined in: mcp/display.ts:285
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.