use ratatui::style::Color;
pub fn tool_icon_and_color(name: &str) -> (&'static str, Color) {
if name.starts_with("mcp_k8s_") || name.starts_with("kubectl_") {
return ("βΈοΈ", Color::Blue);
}
match name {
"read_file"
| "list_dir"
| "search_files"
| "grep_search"
| "file_search"
| "semantic_search"
| "read_notebook_cell_output"
| "view_image"
| "copilot_getNotebookSummary" => ("π", Color::Blue),
"write_file"
| "create_file"
| "edit_file"
| "edit_notebook_file"
| "replace_string_in_file"
| "multi_replace_string_in_file" => ("βοΈ", Color::Magenta),
"bash"
| "run_command"
| "run_in_terminal"
| "run_notebook_cell"
| "send_to_terminal"
| "create_and_run_task" => ("β‘", Color::Yellow),
"question" => ("β", Color::Cyan),
"web_fetch" | "web_scrape" | "browser_navigate" | "browser_screenshot"
| "browser_click" => ("π", Color::Green),
_ => ("π§", Color::Cyan),
}
}