Overview
TheuseToolResponseMetadata hook provides access to metadata returned from MCP tool responses.
Import
Signature
Parameters
Optional TypeScript type for the metadata
Returns
The tool response metadata object, ornull if not available.
Access metadata from tool responses
useToolResponseMetadata hook provides access to metadata returned from MCP tool responses.
null if not available.