MCPcopy Index your code
hub / github.com/cloudflare/agents / _hostReadFile

Method _hostReadFile

packages/think/src/think.ts:1521–1523  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1519 // ── Host bridge methods (called by HostBridgeLoopback via DO RPC) ──
1520
1521 async _hostReadFile(path: string): Promise<string | null> {
1522 return (await this.workspace.readFile(path)) ?? null;
1523 }
1524
1525 async _hostWriteFile(path: string, content: string): Promise<void> {
1526 await this.workspace.writeFile(path, content);

Callers 2

hostReadFileMethod · 0.80
readFileMethod · 0.80

Calls 1

readFileMethod · 0.65

Tested by

no test coverage detected