MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / toolDesc

Function toolDesc

app/src/modules/renderer.js:40–55  ·  view source on GitHub ↗
(name, input)

Source from the content-addressed store, hash-verified

38function iconFor(name) { return ICONS[name] || ICONS.Bash; }
39
40function toolDesc(name, input) {
41 if (!input) return '';
42 switch (name) {
43 case 'Bash': return input.description || input.command || '';
44 case 'Read': return input.file_path || '';
45 case 'Write': return input.file_path || '';
46 case 'Edit': return input.file_path || '';
47 case 'Glob': return input.pattern || '';
48 case 'Grep': return input.pattern || '';
49 case 'WebFetch': return input.url || '';
50 case 'WebSearch': return input.query || '';
51 case 'Task': return input.description || input.prompt || '';
52 case 'Skill': return input.name || input.skill || input.skill_name || 'skill';
53 default: return JSON.stringify(input).substring(0, 80);
54 }
55}
56
57function toolInputFull(name, input) {
58 if (!input) return '';

Callers 1

renderToolFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected