Skip to content

Confirmation

Asks before a risky tool call runs. Approve or reject it: the answer replaces the buttons and is announced.

Sourcecomponents/confirmation.tsx
The agent wants to delete 3 drafts. This can’t be undone.

Usage

When to use

Use when

Asking the user to approve a tool call before it runs, then showing what they chose. Approve is primary, Reject outline; the answer is announced

Don’t use when

A plan to approve before any work starts (use Plan); a destructive action the user started themselves (use Alert Dialog)