MCPcopy
hub / github.com/codeaashu/claude-code / userFacingName

Function userFacingName

src/tools/AgentTool/UI.tsx:760–775  ·  view source on GitHub ↗
(input: Partial<{
  description: string;
  prompt: string;
  subagent_type: string;
  name: string;
  team_name: string;
}> | undefined)

Source from the content-addressed store, hash-verified

758 </Box>;
759}
760export function userFacingName(input: Partial<{
761 description: string;
762 prompt: string;
763 subagent_type: string;
764 name: string;
765 team_name: string;
766}> | undefined): string {
767 if (input?.subagent_type && input.subagent_type !== GENERAL_PURPOSE_AGENT.agentType) {
768 // Display "worker" agents as "Agent" for cleaner UI
769 if (input.subagent_type === 'worker') {
770 return 'Agent';
771 }
772 return input.subagent_type;
773 }
774 return 'Agent';
775}
776export function userFacingNameBackgroundColor(input: Partial<{
777 description: string;
778 prompt: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected