MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / getToolIcon

Function getToolIcon

internal/tui/log.go:202–225  ·  view source on GitHub ↗

getToolIcon returns an emoji icon for a tool name.

(toolName string)

Source from the content-addressed store, hash-verified

200
201// getToolIcon returns an emoji icon for a tool name.
202func getToolIcon(toolName string) string {
203 switch toolName {
204 case "Read":
205 return "📖"
206 case "Edit":
207 return "✏️"
208 case "Write":
209 return "📝"
210 case "Bash":
211 return "🔨"
212 case "Glob":
213 return "🔍"
214 case "Grep":
215 return "🔎"
216 case "Task":
217 return "🤖"
218 case "WebFetch":
219 return "🌐"
220 case "WebSearch":
221 return "🌐"
222 default:
223 return "⚙️"
224 }
225}
226
227// getToolArgument extracts the main argument from tool input for display.
228func getToolArgument(toolName string, input map[string]interface{}) string {

Callers 2

TestGetToolIconFunction · 0.85
renderToolCardMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestGetToolIconFunction · 0.68