Overview
TheuseDisplayMode hook returns the current display mode of the app. It is a convenience wrapper around useHostContext.
Wraps onhostcontextchanged
MCP Apps SDK reference
Import
Signature
McpUiDisplayMode.
Get the current display mode.
useDisplayMode hook returns the current display mode of the app. It is a convenience wrapper around useHostContext.
McpUiDisplayMode.