useToolInfo hook provides access to the tool’s input arguments, output, and response metadata. It also tracks whether the tool execution is still pending or has completed successfully.
Basic usage
Type Parameters
ToolSignature
Returns
The hook returns an object that varies based on the current status:When status is "pending"
When status is "success"
Properties
status
pending- The tool is still executingsuccess- The tool has completed and output is available
isPending, isSuccess
status for convenience.
input
output
status is "success".
responseMetadata
status is "success".