MCPcopy Create free account
hub / github.com/arctic-cli/interface / normalizeToolName

Function normalizeToolName

packages/arctic/src/config/config.ts:482–501  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

480 }
481
482 function normalizeToolName(value: string) {
483 const key = value.trim().toLowerCase().replace(/\s+/g, "_")
484 const aliases: Record<string, string> = {
485 ls: "list",
486 list: "list",
487 read: "read",
488 edit: "edit",
489 write: "write",
490 bash: "bash",
491 grep: "grep",
492 glob: "glob",
493 webfetch: "webfetch",
494 web_fetch: "webfetch",
495 websearch: "websearch",
496 web_search: "websearch",
497 codesearch: "codesearch",
498 code_search: "codesearch",
499 }
500 return aliases[key] ?? key
501 }
502
503 function normalizeAgentColor(value: unknown) {
504 if (typeof value !== "string") return value

Callers 1

normalizeAgentToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected