matches_tool_pattern

Function matches_tool_pattern 

Source
pub fn matches_tool_pattern(pattern: &str, tool_name: &str) -> bool
Expand description

Checks if a tool name matches an allowed tool pattern.

Supports patterns like:

  • "Read" - exact match
  • "Bash(git:*)" - scoped pattern (matches base tool “Bash”)