{"version":"2.1.324","anchor":"hook-modified-tool-input-is-denied-when-the-sessions-server","canonical_anchor":"hook-modified-tool-input-is-denied-when-the-sessions-server","heading":"Hooks get tighter limits on approving and changing tool calls","tier":"notice","area":"Hooks","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/hook-modified-tool-input-is-denied-when-the-sessions-server","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Hooks get tighter limits on approving and changing tool calls\n\nHooks can no longer override organisation limits, some hook approvals now need a person, and hook-changed tool input can be denied by the session's server\n\n**Unclear.** What decides whether a session's server checks calls before hooks run is not stated.\n\n**What**\n\nA hook is a script you set up to run at certain points while Claude works. `PreToolUse` hooks run before a tool call (one action Claude takes, such as running a command), and `PermissionRequest` hooks run when a tool call needs a permission decision. This release limits what these hooks can do in several ways:\n\n- **Changed input can be denied.** If a `PreToolUse` or `PermissionRequest` hook changes a tool call's input, and the session's server checks calls before hooks run, the call is now denied. The message reads \"A ${n} hook changed the ${e.name} call, and this session's server checks calls before a hook changes them. The call is denied.\" This check only applies under a condition the finding could not identify.\n\n- **Organisation limits still apply.** Organisation limits (`orgLimit`) and related details are now carried through decisions made by `PermissionRequest` hooks, so a hook can no longer get around them.\n\n- **Some approvals need a person.** A new `hookAskFloor` check turns certain hook approvals into a question that a person must answer.\n\n- **Hook permission updates are filtered.** Permission changes a hook hands back (`updatedPermissions`) are now filtered rather than applied as given.\n\n- **Skill check reworked.** The permission check for skills now handles blank text differently.\n\n**Why**\n\nIf you use hooks to approve tool calls automatically or to rewrite their input, some of those calls may now be denied or come back to you as a question instead of going ahead. Check your hooks if calls they used to approve start stopping.\n\n- Area: Hooks\n- Names: `PreToolUse`, `PermissionRequest`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}