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

Method write

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

* Overwrite (or create) a file with the given bytes. `opts.mode` * lets the caller pin the resulting file's POSIX mode — used by * `edit` and `write` to preserve the executable bit across an * overwrite.

(path: string, content: Uint8Array, opts?: { mode?: number })

Source from the content-addressed store, hash-verified

42 * overwrite.
43 */
44 write(path: string, content: Uint8Array, opts?: { mode?: number }): Promise<void>;
45}

Callers 3

createWriteToolFunction · 0.65
createEditToolFunction · 0.65
fetchMethod · 0.65

Implementers 1

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

Calls

no outgoing calls

Tested by

no test coverage detected