S
SureUI

Tool Approval · SureUI

Approve or deny an AI SDK tool call, or a batch of them, with a gesture that matches its risk: undo for low, click again for medium, hold for high and a typed phrase for critical. Pass addToolApprovalResponse from useChat as onRespond.

npx shadcn@latest add @sureui/tool-approval
Preview Tool Approval on SureUI's site (opens in a new tab)
Loading the source for tool-approval…

tool-approval