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

Method tool_args

core/src/hooks/events.rs:637–643  ·  view source on GitHub ↗

Get the tool args (for tool events)

(&self)

Source from the content-addressed store, hash-verified

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

Callers 2

matches_path_patternMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected