@maxhealth.tech/prefab / mcp / displayUpdate
Variable: displayUpdate
ts
const displayUpdate: (state, options?) => McpDisplayResult<PrefabUpdateWire> = display_update;Defined in: mcp/display.ts:368
MCP display helpers — return prefab UIs as MCP tool results.
Return a partial state update for an existing prefab UI.
Instead of re-rendering the entire UI, this sends a state delta that the renderer merges into its reactive store. Optionally fires actions after the state is applied.
Parameters
| Parameter | Type |
|---|---|
state | Record<string, unknown> |
options? | DisplayUpdateOptions |
Returns
McpDisplayResult<PrefabUpdateWire>
MCP tool result with a $prefab update payload.