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.
Description
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.See
App.setViewStatefor the method that sends this requestAppBridge.onsetviewstatefor the host handler