MCPcopy Create free account
hub / github.com/Noumena-Network/code / extractSearchText

Function extractSearchText

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

Source from the content-addressed store, hash-verified

280 // numFiles/numLines/numMatches are chrome ("Found 3 files") — fine to
281 // skip (under-count, not phantom). Glob reuses this via UI.tsx:65.
282 extractSearchText({ mode, content, filenames }) {
283 if (mode === 'content' && content) return content
284 return filenames.join('\n')
285 },
286 mapToolResultToToolResultBlockParam(
287 {
288 mode = 'files_with_matches',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected