{"version":"2.1.331","anchor":"plugin-uiinvalidate-accepts-tooloffer-with-an-agentid-u","canonical_anchor":"plugin-uiinvalidate-accepts-tooloffer-with-an-agentid-u","heading":"Plugins can refresh tool offers per agent and attach agent notes to log lines","tier":"internal","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/plugin-uiinvalidate-accepts-tooloffer-with-an-agentid-u","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Plugins can refresh tool offers per agent and attach agent notes to log lines\n\nA plugin can now ask Claude Code to re-check `tool.offer`, optionally for one agent, and log messages can carry an agent note\n\n**Unclear.** Whether this plugin interface is available to every user is not clear.\n\n**What**\n\nPlugins are add-ons that extend Claude Code. Their interface has gained a few things:\n\n- `ui.invalidate` accepts the event `tool.offer`. This asks Claude Code to re-check which tools are offered.\n\n- That event alone can take an optional `agentId`, which names the agent the refresh applies to.\n\n- `ui.log`, which writes a log message, now passes an agent note along with the message.\n\n- New display components named `BesidePrompt` and `BesidePromptList` have been added.\n\n**Why**\n\nA plugin that decides through `tool.offer` which tools Claude gets can now ask for that decision to be made again, including for one agent only.\n\n- Area: Plugins\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}