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

Method writeFile

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

Source from the content-addressed store, hash-verified

415 }
416
417 async writeFile(
418 path: string,
419 content: string,
420 mimeType?: Parameters<Workspace["writeFile"]>[2]
421 ): Promise<void> {
422 return this.workspace.writeFile(path, content, mimeType);
423 }
424
425 async writeFileBytes(
426 path: string,

Callers

nothing calls this directly

Calls 1

writeFileMethod · 0.65

Tested by

no test coverage detected