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

Function isSearchOrReadCommand

src/tools/GrepTool/GrepTool.ts:213–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 return input.path ? `${input.pattern} in ${input.path}` : input.pattern
212 },
213 isSearchOrReadCommand() {
214 return { isSearch: true, isRead: false }
215 },
216 getPath({ path }): string {
217 return path || getCwd()
218 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected