MCPcopy Create free account
hub / github.com/AI45Lab/Code / tool_name

Method tool_name

core/src/hooks/events.rs:628–634  ·  view source on GitHub ↗

Get the tool name (for tool events)

(&self)

Source from the content-addressed store, hash-verified

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> {

Callers 2

matchesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected