ClaudeCode.Hook.PermissionDecision.Allow (ClaudeCode v0.36.3)
View SourceAllows a tool to execute, optionally with modified input or updated permissions.
Returned from :can_use_tool callbacks and PermissionRequest hooks.
Shorthand: :allow or {:allow, updated_input: %{...}}.
Fields
:updated_input- replacement tool input map (overrides the original):updated_permissions- list of permission rule maps to persist. Each map should contain a"type"key matching a CLI permission type, e.g.:[%{"type" => "toolAlwaysAllow", "tool" => "Bash"}] [%{"type" => "toolAlwaysDeny", "tool" => "Write"}]