⌨️PermissionDenied Hook
Also known as PermissionDenied
The event when auto mode refuses a tool call.
Think of it like
It is like a note. It says the guard sent someone away.
Example
Emma runs in auto mode and wants a log of what it blocked. Her hook writes each denial to a file she reads later.
Why it matters
Auto mode decides alone. This is how you see what it turned down.
Definition
Example code
json
{
"hookSpecificOutput": {
"hookEventName": "PermissionDenied",
"retry": true
}
}Common mistake
Key takeaways
- 1Auto mode only. Its refusals.
- 2Not your no. Or a rule.
- 3Can allow a retry. retry: true.