MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / toolMatchesName

Function toolMatchesName

source code/Tool.ts:350–355  ·  view source on GitHub ↗
(
  tool: { name: string; aliases?: string[] },
  name: string,
)

Source from the content-addressed store, hash-verified

348 * Checks if a tool matches the given name (primary name or alias).
349 */
350export function toolMatchesName(
351 tool: { name: string; aliases?: string[] },
352 name: string,
353): boolean {
354 return tool.name === name || (tool.aliases?.includes(name) ?? false)
355}
356
357/**
358 * Finds a tool by name or alias from a list of tools.

Callers 15

getToolsFunction · 0.85
submitMessageMethod · 0.85
findToolByNameFunction · 0.85
filterToolsForAgentFunction · 0.85
callFunction · 0.85
callFunction · 0.85
getDiagnosticAttachmentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected