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

Method readChunks

packages/computer/src/tools/fs/types.ts:29–29  ·  view source on GitHub ↗

* Stream the file (or a byte range of it) in chunks. The total * bytes yielded MUST equal min(byteLength ?? size - byteOffset, * size - byteOffset). Throws if the path does not exist.

(path: string, byteOffset?: number, byteLength?: number)

Source from the content-addressed store, hash-verified

27 * size - byteOffset). Throws if the path does not exist.
28 */
29 readChunks(path: string, byteOffset?: number, byteLength?: number): AsyncIterable<Uint8Array>;
30
31 /**
32 * Read the entire file into memory. Used for images and for the

Callers 2

ai.test.tsFile · 0.65
createReadToolFunction · 0.65

Implementers 1

WorkspaceFileStorepackages/computer/src/tools/fs/store.t

Calls

no outgoing calls

Tested by

no test coverage detected