Access current tool result with automatic re-renders
Current tool result or undefined
function ResultDisplay() { const result = useToolResult<typeof app.tools>(); if (!result?.myTool) { return <div>No results yet</div>; } return <div>{result.myTool.message}</div>;} Copy
function ResultDisplay() { const result = useToolResult<typeof app.tools>(); if (!result?.myTool) { return <div>No results yet</div>; } return <div>{result.myTool.message}</div>;}
Access current tool result with automatic re-renders