{"version":"2.1.331","anchor":"hook-model-call-refusal-blocks-pretooluse","canonical_anchor":"hook-model-call-refusal-blocks-pretooluse","heading":"A tool call is blocked when a PreToolUse hook's model request is redirected","tier":"notice","area":"Hooks","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/hook-model-call-refusal-blocks-pretooluse","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### A tool call is blocked when a PreToolUse hook's model request is redirected\n\nIf a PreToolUse hook cannot reach the model because its request was redirected, Claude Code now blocks the tool call\n\n**What**\n\nA `PreToolUse` hook is a check you set up that runs before Claude uses a tool and can stop it. Some hooks ask a model for their answer. If that request is redirected and the hook returns no answer, Claude Code now blocks the tool call and shows: \"Blocked: this hook's request to the model was redirected. Sign in to your network or proxy.\"\n\n**Why**\n\nOn networks that send you to a login page before letting traffic through, such as hotel or office Wi-Fi, a hook that could not run no longer waves the tool call through. Sign in to the network and try again.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: both\n- Heads-up: yes"}