Skip to main content

classify_tool

Function classify_tool 

Source
pub fn classify_tool(name: &str) -> ToolEffect
Expand description

Classify a built-in tool by name.

For Bash, this returns the default classification (LocalMutation); the actual effect depends on the command string and must be refined via crate::bash_safety::classify_bash_command.

Unknown tools default to LocalMutation (conservative — always asks).

For MCP tools (names containing __), call ToolRegistry::classify_tool_with_mcp instead to use server-provided annotations.