Unclear It is not clear whether anything calls tool.judge or tool.run yet, so plugin authors may not be able to use them.
What
A hook is a piece of code a plugin can run at a set point while Claude uses a tool. These points are called surfaces. Several related changes landed together.
- New surfaces:
tool.judgeandtool.runnow sit besidetool.call,tool.checkandtool.describe. - New per-tool state: each tool's state gains
managedDenial. - Hook answers: output is now marked
isHooksAnswerwhen it came from a hook.isToolsOwnOutputis now true only when the output is not a hook answer. Before, it was true whenever any output existed. - MCP tools: the result path for MCP tools (tools from outside programs) now passes
isPublishandisToolsOwnOutputas false.
Why
Nothing found here shows these surfaces in use yet. In practice, output that a hook supplied in place of a tool may now be handled differently from what the tool produced itself.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
| `tool.run` | An allowed call is about to run. Requires Claude Code v2.1.326 or later. | `next(e)`, `{ deny: reason }`, or `{ result }` |plugins/mods/reference see the edit
| `tool.judge` | [Auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) is about to ask its classifier about a call. Requires Claude Code v2.1.326 or later. | `next(e)` or `{ decision }` |plugins/mods/reference see the edit
It is not clear whether anything calls `tool.judge` or `tool.run` yet, so plugin authors may not be able to use them.
Anthropic's documentation has since written up tool.judge, on Mods reference.