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

Function readFile

packages/computer/src/tools/ai.test.ts:110–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 return { size: 10, mtime: 1, mode: 0o100644, isFile: true, isDirectory: false };
109 },
110 async readFile() {
111 return new ReadableStream<Uint8Array>({
112 start(controller) {
113 controller.enqueue(bytes("abcdefghij"));
114 },
115 cancel() {
116 cancelled = true;
117 },
118 });
119 },
120 async writeFile() {},
121 async mkdir() {},
122 async rm() {},

Callers 1

readWorkdirAsTextFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected