Mods reference changedplugins/mods/reference
Nearest release: v2.1.295, published 3 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 8 Oct 2026 21:57 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 8 Oct 2026 22:07 UTC.
Upstream edited
Recorded here
Lines+9added
Lines−0removed
From line
54
where the diff opens
First seen
1 Oct 2026
this site's first read of the page
Recorded edits17to this page, all time
#### Agent and organization fields on `tool.check`
The whole hunk
from line 54, old and new numbered
/
from line 54
5454| [`tool.check`](/docs/en/plugins/mods/events#where-settings-hooks-run-in-the-order) | Claude Code decides whether a tool call may run, after the `tool.call` and `PreToolUse` hooks. `next(e)` resolves to the decision the rules, the permission mode, and those hooks reached. | `{ decision }`, which is `allow`, `ask`, or `deny` |
5555| `tool.describe` | Once for each tool, when its description is first sent to Claude | `{ description }`, optionally with `isDeferred` set to `true` to put the tool behind [tool search](/docs/en/mcp#scale-with-mcp-tool-search) or `false` to load it upfront |
5656
57#### Agent and organization fields on `tool.check`
58
59In a `tool.check` hook, read these fields to tell a subagent's call from the main conversation's, and to see whether your organization requires approval for a connector tool:
60
61* **`e.agentId`**: set when a [subagent](/docs/en/sub-agents) or an [in-process teammate](/docs/en/agent-teams#choose-a-display-mode) makes the call, and absent when the main conversation does
62* **`e.ceiling`**: `ask` for a connector tool your organization set to `ask`, in [sessions where that setting reaches Claude Code](/docs/en/mcp#organization-controls-on-connector-tools)
63
64On `tool.check`, `e.agentId` and `e.ceiling` require Claude Code v2.1.290 or later.
65
5766### Prompts and what Claude reads
5867
5968Prompt events cover the text the user types and the text Claude Code sends to Claude on its own, such as the system prompt and reminders:
No line in this hunk matches that.