What
A plugin's hooks module is a code file that runs at set moments. Tool calls used to reach such a module only when it registered PreToolUse or tool.check. Registering tool.run now also makes tool calls reach it.
Permission requests passed along from a teammate are now also marked as forwarded from a teammate.
Why
Hooks modules that use tool.run now actually see the tool calls Claude makes.
Documented inclaude-code/plugins/mods/reference
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.
Confirmed since
Anthropic's documentation has since written up tool.run, on Mods reference.
| `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
Added since
A small documentation edit on Handle approvals and user input touched a line naming PreToolUse after this was published.
> To check calls that run without your callback, such as file reads inside your [working directories](https://code.claude.com/docs/en/permissions.md#working-directories), use a [`PreToolUse` hook](https://code.claude.com/docs/en/agent-sdk/…agent-sdk/user-input see the edit
Confirmed since
Anthropic's documentation has since written up tool.check, on Configure permissions.
That precedence covers hooks in settings files and in a plugin's `hooks/hooks.json`. A [mod](https://code.claude.com/docs/en/plugins/mods/overview.md) you install that handles the [`tool.check`](https://code.claude.com/docs/en/plugins/mods…permissions see the edit
Confirmed since
Anthropic's documentation has since written up PreToolUse, on Choose a permission mode.
> * Outside Code Mode, the classifier reviews messages Claude sends to another agent with [`SendMessage`](https://code.claude.com/docs/en/tools-reference) before Claude Code delivers them. If an allow rule matches `SendMessage` or a `PreTo…permission-modes see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up PreToolUse, on Choose a permission mode.