Skip to content

Permission Denied

Configuration for permission-denied hooks with tool-based command execution.

Commands run when a tool permission request is denied. Observational.

Map of tool-name patterns to command configurations. Keys are glob patterns matched against the denied tool name (e.g., “Bash”, ”*”).

AttributeValue
Typeobject
Default{}

This section uses the following nested type definitions:

Configuration for individual permission-denied commands with optional messages.

Properties:

PropertyTypeDefaultDescription
maxOutputLines`integernull`null
message`stringnull`null
notifyPerCommand`booleannull`null
runstring-The shell command to execute
showCommand`booleannull`true
showStderr`booleannull`null
showStdout`booleannull`null
timeout`integernull`null