MCPcopy Create free account
hub / github.com/codeaashu/claude-code / renderToolUseMessage

Function renderToolUseMessage

src/tools/SkillTool/UI.tsx:47–61  ·  view source on GitHub ↗
({
  skill
}: Partial<Input>, {
  commands
}: {
  commands?: Command[];
})

Source from the content-addressed store, hash-verified

45 </MessageResponse>;
46}
47export function renderToolUseMessage({
48 skill
49}: Partial<Input>, {
50 commands
51}: {
52 commands?: Command[];
53}): React.ReactNode {
54 if (!skill) {
55 return null;
56 }
57 // Look up the command to check if it came from the legacy /commands folder
58 const command = commands?.find(c => c.name === skill);
59 const displayName = command?.loadedFrom === 'commands_DEPRECATED' ? `/${skill}` : skill;
60 return displayName;
61}
62export function renderToolUseProgressMessage(progressMessages: ProgressMessage<Progress>[], {
63 tools,
64 verbose

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected