Skip to content

@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

ParameterType
stateRecord<string, unknown>
options?DisplayUpdateOptions

Returns

McpDisplayResult<PrefabUpdateWire>

MCP tool result with a $prefab update payload.

Released under the MIT License.