Tool Approval
A permission gate that shows scope and command detail before an agent tool runs.
Approval needed
Allow Terminal?
Run the production build to validate the newly generated component routes.
pnpm buildScope: This command only
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/tool-approval.jsonAPI reference
Tool Approval
| Prop | Type | Default | Description |
|---|---|---|---|
tool | string | — | Names the requesting tool. |
command | string | — | Shows the exact command or action. |
onAllow / onDeny | callbacks | — | Handle the user permission decision. |