Overview
TheuseHostContext hook subscribes to the full host context object, which contains theme, display mode, locale, safe area insets, container dimensions, and more. It updates reactively whenever the host changes any value.
Most apps should use the convenience hooks (useTheme, useDisplayMode, useLocale, etc.) instead of accessing the full context directly.
Import
Signature
Returns
Returns the fullMcpUiHostContext object, or null before the first update.