Overview
TheuseToolInfo hook returns metadata about the tool call that instantiated the current app. It is a convenience wrapper around useHostContext.
Wraps onhostcontextchanged
MCP Apps SDK reference
Import
Signature
Returns
Metadata about the tool call, or
undefined if not available.Usage
McpUiHostContext.toolInfo.