{"version":"2.1.326","anchor":"hooks-gain-a-toolrun-event","canonical_anchor":"hooks-gain-a-toolrun-event","heading":"Plugin hooks can answer added tools with a tool.run event","tier":"internal","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/hooks-gain-a-toolrun-event","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Plugin hooks can answer added tools with a `tool.run` event\n\nA tool added through a `tool.list` hook can now be answered by a `tool.run` hook as well as a `tool.call` hook\n\n**Unclear.** How `tool.run` behaves differently from `tool.call` is not stated.\n\n**What**\n\nA tool that a plugin adds through a `tool.list` hook can now be answered by a `tool.run` hook, not only by a `tool.call` hook. If neither answers, the error now reads \"was added by a tool.list hook, and no tool.run or tool.call hook answered this call\".\n\nThe check that decides whether hooks get a say in tool permissions now counts `tool.run` along with `tool.call` and the classic `PreToolUse` hook.\n\n**Why**\n\nPlugin authors have a second event to choose from for handling the tools they add.\n\n- Area: Plugins\n- Names: `tool.run`, `tool.list`, `tool.call`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}