Skip to content
Get Pro

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 build

Scope: This command only

Installation

Add the component source directly to your project.

pnpm dlx shadcn@latest add https://pastaui.com/r/tool-approval.json

API reference

Tool Approval

Tool Approval properties
PropTypeDefaultDescription
toolstringNames the requesting tool.
commandstringShows the exact command or action.
onAllow / onDenycallbacksHandle the user permission decision.