MCP Apps
    Preparing search index...

    Interface McpUiSetViewStateRequest

    Request to save the View's state for when it is rendered again (View -> Host).

    Each request replaces the saved state as a whole. The Host picks the storage key and answers with an empty result once the state is stored. The saved state comes back in McpUiHostContext.viewState; the Host gives it to neither the model nor the MCP server.

    interface McpUiSetViewStateRequest {
        method: "ui/set-view-state";
        params: { state: Record<string, unknown> | null };
    }
    Index

    Properties

    Properties

    method: "ui/set-view-state"
    params: { state: Record<string, unknown> | null }

    Type Declaration

    • state: Record<string, unknown> | null

      State to save; replaces any saved state, and null clears it.