MCPcopy Create free account
hub / github.com/cloudflare/agents / searchText

Method searchText

packages/shell/src/memory.ts:199–205  ·  view source on GitHub ↗
(
    path: string,
    query: string,
    options?: StateSearchOptions
  )

Source from the content-addressed store, hash-verified

197 }
198
199 async searchText(
200 path: string,
201 query: string,
202 options?: StateSearchOptions
203 ): Promise<ReturnType<typeof searchTextContent>> {
204 return searchTextContent(await this.readFile(path), query, options);
205 }
206
207 async searchFiles(
208 pattern: string,

Callers

nothing calls this directly

Calls 2

readFileMethod · 0.95
searchTextContentFunction · 0.90

Tested by

no test coverage detected