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

Method writeFile

examples/assistant/src/server.ts:619–625  ·  view source on GitHub ↗
(
    path: string,
    content: string,
    mimeType?: Parameters<Workspace["writeFile"]>[2]
  )

Source from the content-addressed store, hash-verified

617 }
618
619 async writeFile(
620 path: string,
621 content: string,
622 mimeType?: Parameters<Workspace["writeFile"]>[2]
623 ) {
624 return (await this.parent()).writeFile(path, content, mimeType);
625 }
626
627 async writeFileBytes(
628 path: string,

Callers

nothing calls this directly

Calls 2

parentMethod · 0.95
writeFileMethod · 0.65

Tested by

no test coverage detected