Get the tool args (for tool events)
(&self)
| 635 | |
| 636 | /// Get the tool args (for tool events) |
| 637 | pub fn tool_args(&self) -> Option<&serde_json::Value> { |
| 638 | match self { |
| 639 | HookEvent::PreToolUse(e) => Some(&e.args), |
| 640 | HookEvent::PostToolUse(e) => Some(&e.args), |
| 641 | _ => None, |
| 642 | } |
| 643 | } |
| 644 | |
| 645 | /// Get the skill name (for skill events) |
| 646 | pub fn skill_name(&self) -> Option<&str> { |
no outgoing calls
no test coverage detected