getToolIcon returns an emoji icon for a tool name.
(toolName string)
| 200 | |
| 201 | // getToolIcon returns an emoji icon for a tool name. |
| 202 | func 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. |
| 228 | func getToolArgument(toolName string, input map[string]interface{}) string { |
no outgoing calls