What probably matters to youSection of the release
What
WebFetch is the tool Claude uses to read a web page. Environment variables are named values set outside Claude Code that change how it works.
When CLAUDE_CODE_DISABLE_WEB_FETCH is set, WebFetch is refused with the message "WebFetch is turned off by CLAUDE_CODE_DISABLE_WEB_FETCH." Otherwise the existing policy check decides.
A second check refuses with that message and the reason web_fetch_refused even when an earlier check had passed.
Before reading the URL, WebFetch now asks a check whether to refuse. If it returns a message, the call is refused with reason 'refused' and error code 2. Before, the URL was read straight away.
The tool's description, as captured under this release, is unchanged at 1,608 characters.
Why
You or your organisation can switch WebFetch off with one variable, and Claude gets a clear reason instead of a failed fetch.