MCPcopy Create free account
hub / github.com/enowdev/enowX-Coder / map_tool_name

Function map_tool_name

src-tauri/src/agents/runner.rs:2204–2215  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

2202}
2203
2204fn map_tool_name(name: &str) -> Option<ToolName> {
2205 match name {
2206 "read_file" => Some(ToolName::ReadFile),
2207 "write_file" => Some(ToolName::WriteFile),
2208 "patch_file" => Some(ToolName::PatchFile),
2209 "list_dir" => Some(ToolName::ListDir),
2210 "search_files" => Some(ToolName::SearchFiles),
2211 "run_command" => Some(ToolName::RunCommand),
2212 "web_search" => Some(ToolName::WebSearch),
2213 _ => None,
2214 }
2215}
2216
2217#[derive(Debug, Clone)]
2218struct SubagentTask {

Callers 1

execute_tool_callMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected