MCPcopy Create free account
hub / github.com/codeaashu/claude-code / extractSearchText

Function extractSearchText

src/tools/GrepTool/GrepTool.ts:250–253  ·  view source on GitHub ↗
({ mode, content, filenames })

Source from the content-addressed store, hash-verified

248 // numFiles/numLines/numMatches are chrome ("Found 3 files") — fine to
249 // skip (under-count, not phantom). Glob reuses this via UI.tsx:65.
250 extractSearchText({ mode, content, filenames }) {
251 if (mode === 'content' && content) return content
252 return filenames.join('\n')
253 },
254 mapToolResultToToolResultBlockParam(
255 {
256 mode = 'files_with_matches',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected