{"version":"2.1.326","anchor":"new-tooljudge-and-toolrun-surfaces-and-manageddenial-state","canonical_anchor":"new-tooljudge-and-toolrun-surfaces-and-manageddenial-state","heading":"Tool hook surfaces gain tool.judge and tool.run, and hook answers are tracked separately","tier":"notice","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/new-tooljudge-and-toolrun-surfaces-and-manageddenial-state","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Tool hook surfaces gain tool.judge and tool.run, and hook answers are tracked separately\n\nPlugin hooks can now attach to `tool.judge` and `tool.run`, and tool output from a hook is now told apart from the tool's own output\n\n**Unclear.** It is not clear whether anything calls `tool.judge` or `tool.run` yet, so plugin authors may not be able to use them.\n\n**What**\n\nA hook is a piece of code a plugin can run at a set point while Claude uses a tool. These points are called surfaces. Several related changes landed together.\n\n- New surfaces: `tool.judge` and `tool.run` now sit beside `tool.call`, `tool.check` and `tool.describe`.\n\n- New per-tool state: each tool's state gains `managedDenial`.\n\n- Hook answers: output is now marked `isHooksAnswer` when it came from a hook. `isToolsOwnOutput` is now true only when the output is not a hook answer. Before, it was true whenever any output existed.\n\n- MCP tools: the result path for MCP tools (tools from outside programs) now passes `isPublish` and `isToolsOwnOutput` as false.\n\n**Why**\n\nNothing found here shows these surfaces in use yet. In practice, output that a hook supplied in place of a tool may now be handled differently from what the tool produced itself.\n\n- Area: Plugins\n- Names: `tool.judge`, `tool.run`\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no"}