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

Function isAutoToolSearchMode

src/utils/toolSearch.ts:75–78  ·  view source on GitHub ↗

* Check if ENABLE_TOOL_SEARCH is set to auto mode (auto or auto:N).

(value: string | undefined)

Source from the content-addressed store, hash-verified

73 * Check if ENABLE_TOOL_SEARCH is set to auto mode (auto or auto:N).
74 */
75function isAutoToolSearchMode(value: string | undefined): boolean {
76 if (!value) return false
77 return value === 'auto' || value.startsWith('auto:')
78}
79
80/**
81 * Get the auto-enable percentage from env var or default.

Callers 1

getToolSearchModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected