MCP Apps
    Preparing search index...

    Variable McpUiSetViewStateRequestSchemaConst

    McpUiSetViewStateRequestSchema: ZodObject<
        {
            method: ZodLiteral<"ui/set-view-state">;
            params: ZodObject<
                { state: ZodNullable<ZodRecord<ZodString, ZodUnknown>> },
                $strip,
            >;
        },
        $strip,
    > = ...

    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.