woopcode docs
v1.0.0 GitHub

write_file

Overwrite an existing file. Changes the workspace, so it pauses on a unified diff and waits for you.

Parameters#

Parameter Type Required Description
path string Yes File path
content string Yes New file contents

Example#

write_file({ path: "…", content: "…" })

Approval#

Pauses on a unified diff. Nothing is written until you approve it.

See also#

  • Tools — every tool, and which of them can change your files
  • Approval modes — what gates the tools that change things

Added in woopcode@0.6.0