Named list of lifecycle event names that can be hooked.
Details
PRE_TOOL_USE– Before tool execution (can allow/deny/modify input)POST_TOOL_USE– After successful tool execution (can modify output)POST_TOOL_USE_FAILURE– After a tool throws an errorPERMISSION_DENIED– When a tool call is blocked by permissionsPERMISSION_REQUEST– When permission mode is "ask" (bubble/default)USER_MESSAGE– When user sends a message to the agentASSISTANT_MESSAGE– When the assistant produces a text response