Get the tool name (for tool events)
(&self)
| 626 | |
| 627 | /// Get the tool name (for tool events) |
| 628 | pub fn tool_name(&self) -> Option<&str> { |
| 629 | match self { |
| 630 | HookEvent::PreToolUse(e) => Some(&e.tool), |
| 631 | HookEvent::PostToolUse(e) => Some(&e.tool), |
| 632 | _ => None, |
| 633 | } |
| 634 | } |
| 635 | |
| 636 | /// Get the tool args (for tool events) |
| 637 | pub fn tool_args(&self) -> Option<&serde_json::Value> { |
no outgoing calls
no test coverage detected