MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / toolIcon

Function toolIcon

ai-code-studio/src/components/ConversationPane.tsx:124–137  ·  view source on GitHub ↗
(name?: string)

Source from the content-addressed store, hash-verified

122}
123
124function toolIcon(name?: string) {
125 const n = (name || '').toLowerCase();
126 if (n === 'bash') return '🖥️';
127 if (n === 'read_file') return '📄';
128 if (n === 'write_file' || n === 'edit_file') return '✏️';
129 if (n === 'glob_search') return '📂';
130 if (n === 'grep_search') return '🔍';
131 if (n === 'webfetch' || n === 'web_fetch') return '🌐';
132 if (n === 'websearch' || n === 'web_search') return '🔎';
133 if (n === 'todowrite' || n === 'todo_write') return '📋';
134 if (n === 'agent') return '🤖';
135 if (n === 'notebookedit' || n === 'notebook_edit') return '📓';
136 return '⚙️';
137}
138
139function toolLabel(name?: string) {
140 const n = (name || '').toLowerCase();

Callers 1

ToolCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected