ClaudeCode.Hook.PermissionDecision.Deny (ClaudeCode v0.36.3)

View Source

Denies a tool from executing, with an optional message and interrupt flag.

Returned from :can_use_tool callbacks and PermissionRequest hooks.

Shorthand: {:deny, message: "reason"}.

Fields

  • :message - explanation shown to the user for the denial
  • :interrupt - when true, interrupts the agent instead of continuing

Summary

Types

t()

@type t() :: %ClaudeCode.Hook.PermissionDecision.Deny{
  interrupt: boolean() | nil,
  message: String.t() | nil
}

Functions

to_wire(o)