{"version":"2.1.326","anchor":"pre-tool-permission-ask-can-be-overridden-by-a-hook-allow","canonical_anchor":"pre-tool-permission-ask-can-be-overridden-by-a-hook-allow","heading":"An \"ask\" paired with an \"allow\" can now go to the permission callback","tier":"notice","area":"Agents","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/pre-tool-permission-ask-can-be-overridden-by-a-hook-allow","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### An \"ask\" paired with an \"allow\" can now go to the permission callback\n\nFor some tools, a permission \"ask\" combined with an \"allow\" now goes to the `canUseTool` callback, as \"ask\" with \"deny\" already did\n\n**Unclear.** Which tools pass the check that lets an allow take part is not stated.\n\n**What**\n\nWhen Claude wants to use a tool, Claude Code combines several decisions, including ones from hooks (your own scripts that run at set points), into allow, deny or ask. Programs built with the Agent SDK can supply a `canUseTool` callback, a function that gets a say in that decision.\n\nBefore, an \"ask\" went to that callback early only when the other decision was \"deny\". Now it also does when the other decision is \"allow\" and a check on the tool and its context passes.\n\n**Why**\n\nThis can change when you or your program see a permission prompt. For some tools, an allow from a hook may now settle a request that would otherwise have asked.\n\n- Area: Agents\n- Names: `canUseTool`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}