MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isToolSearchToolAvailable

Function isToolSearchToolAvailable

src/utils/toolSearch.ts:330–334  ·  view source on GitHub ↗
(
  tools: readonly { name: string }[],
)

Source from the content-addressed store, hash-verified

328 * @returns true if ToolSearchTool is in the tools list, false otherwise
329 */
330export function isToolSearchToolAvailable(
331 tools: readonly { name: string }[],
332): boolean {
333 return tools.some(tool => toolMatchesName(tool, TOOL_SEARCH_TOOL_NAME))
334}
335
336/**
337 * Calculate total deferred tool description size in characters.

Callers 4

isToolSearchEnabledFunction · 0.85
buildSchemaNotSentHintFunction · 0.85

Calls 1

toolMatchesNameFunction · 0.85

Tested by

no test coverage detected