MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / normalizeToolName

Function normalizeToolName

apps/kimi-web/src/lib/toolMeta.ts:63–66  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

61};
62
63export function normalizeToolName(name: string): string {
64 const lower = (name ?? '').trim().toLowerCase().replace(/[\s-]+/g, '_');
65 return NAME_ALIASES[lower] ?? lower;
66}
67
68export function toolLabel(name: string): string {
69 const key = TOOL_LABEL_KEYS[normalizeToolName(name)];

Callers 8

lib-logic.test.tsFile · 0.90
resolveToolRendererFunction · 0.90
buildEditDiffLinesFunction · 0.90
latestTodosFunction · 0.90
toolLabelFunction · 0.85
toolGlyphFunction · 0.85
toolSummaryFunction · 0.85
toolChipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected