{"version":"2.1.282","anchor":"managed-posttooluse-hooks-now-receive-the-tool-duration","canonical_anchor":"managed-posttooluse-hooks-now-receive-the-tool-duration","heading":"Managed PostToolUse hooks now get how long the tool ran","tier":"notice","area":"Hooks","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282\/e\/managed-posttooluse-hooks-now-receive-the-tool-duration","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282","markdown":"### Managed PostToolUse hooks now get how long the tool ran\n\nPostToolUse hooks run in managed-hooks-only mode now receive the duration of the tool call; before, none was passed\n\n**Unclear.** It is not known how the duration appears in the input a hook receives.\n\n**What**\n\nA hook is a command that runs automatically at a set point. A `PostToolUse` hook runs after Claude successfully uses a tool, such as editing a file. Managed hooks are hooks set by an organization.\n\nWhen only managed hooks are allowed, Claude Code now passes the tool call's duration in milliseconds to `PostToolUse` hooks. Before, no duration was passed on that path.\n\n**Why**\n\nOrganization hooks can now see how long each tool ran.\n\n- Area: Hooks\n- Names: `PostToolUse`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}