Confirmation
Tool approval dialogs with request, accepted, and rejected states — built from components/ai-elements/confirmation.
Approval request
Pending state with reject and approve action buttons.
This tool wants to execute a query on the production database:
SELECT * FROM users WHERE role = 'admin'Approved
Responded state after the user approved the tool execution.
You approved this tool execution
Rejected
Denied state after the user rejected the tool execution.
You rejected this tool execution