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.
Returns
'inline' | 'pip' | 'fullscreen'
The current display mode. Defaults to
'inline' when unavailable.