Overview
TheusePlatform hook returns the platform type reported by the host. It is a convenience wrapper around useHostContext.
Wraps onhostcontextchanged
MCP Apps SDK reference
Import
Signature
Returns
The platform type reported by the host.
undefined if the host does not report a platform.Usage
McpUiHostContext.platform.