Overview
TheuseDeviceCapabilities hook returns the device input capabilities reported by the host. It is a convenience wrapper around useHostContext.
Wraps onhostcontextchanged
MCP Apps SDK reference
Import
Signature
Returns
Device input capabilities reported by the host:Returns an empty object
{} if the host does not report capabilities.Usage
McpUiHostContext.deviceCapabilities.