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

Method readFile

examples/assistant/src/server.ts:409–411  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

407 // sync with `@cloudflare/shell` rather than re-stating the types.
408
409 async readFile(path: string): Promise<string | null> {
410 return this.workspace.readFile(path);
411 }
412
413 async readFileBytes(path: string): Promise<Uint8Array | null> {
414 return this.workspace.readFileBytes(path);

Callers

nothing calls this directly

Calls 1

readFileMethod · 0.65

Tested by

no test coverage detected