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

Function willDefer

src/services/api/claude.ts:1208–1209  ·  view source on GitHub ↗
(t: Tool)

Source from the content-addressed store, hash-verified

1206
1207 const useGlobalCacheFeature = shouldUseGlobalCacheScope()
1208 const willDefer = (t: Tool) =>
1209 useToolSearch && (deferredToolNames.has(t.name) || shouldDeferLspTool(t))
1210 // MCP tools are per-user → dynamic tool section → can't globally cache.
1211 // Only gate when an MCP tool will actually render (not defer_loading).
1212 const needsToolBasedCacheMarker =

Callers 1

queryModelFunction · 0.85

Calls 2

shouldDeferLspToolFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected