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

Method writeFile

packages/shell/src/fs/interface.ts:55–55  ·  view source on GitHub ↗
(path: string, content: string)

Source from the content-addressed store, hash-verified

53 readFile(path: string): Promise<string>;
54 readFileBytes(path: string): Promise<Uint8Array>;
55 writeFile(path: string, content: string): Promise<void>;
56 writeFileBytes(path: string, content: Uint8Array): Promise<void>;
57 appendFile(path: string, content: string | Uint8Array): Promise<void>;
58 exists(path: string): Promise<boolean>;

Callers 8

writeFileFunction · 0.65
memory.test.tsFile · 0.65
writeFileMethod · 0.65
git.test.tsFile · 0.65
writeFileMethod · 0.65
writeMethod · 0.65
writeWithEventsMethod · 0.65

Implementers 2

WorkspaceFileSystempackages/shell/src/workspace.ts
InMemoryFspackages/shell/src/fs/in-memory-fs.ts

Calls

no outgoing calls

Tested by 1

writeFileMethod · 0.52