{"version":"2.1.333","anchor":"plugin-hooks-tool-name-scoping-and-a-stricter-fileprocess-p","canonical_anchor":"plugin-hooks-tool-name-scoping-and-a-stricter-fileprocess-p","heading":"Plugin hooks now check tool runs and file writes the same way","tier":"internal","area":"Plugin Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-hooks-tool-name-scoping-and-a-stricter-fileprocess-p","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugin hooks now check tool runs and file writes the same way\n\nPlugin hooks now check tool runs and file writes through one shared check, match plugin tools by full name, and deny empty writes\n\n**What**\n\nThe `tool.offer` hook point, where plugins decide whether a tool is offered to Claude, now checks a tool by its plugin-qualified name (the name with the plugin it came from) when the tool comes from neither Claude Code itself nor an MCP server.\n\nOther hook points now go through one shared check that is told what kind of action it is looking at: a tool, a file, or a take. These include:\n\n- `tool.run`, which before only recorded the call as allowed.\n\n- `fs.write`, which before used its own separate check.\n\nA write that carries empty text is now denied.\n\n**Why**\n\nPlugins installed for a user are now held to the same rules for running tools and writing files, instead of some actions being let through without a check.\n\n- Area: Plugin Hooks\n- Names: `tool.offer`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}