Mew. Work. Docs

Built-in tools›Files and search

Write file

write
Group
Files and search
Turned on by
Its own switch on the Tools page of Conversation settings.
Approval
Reviewed: writes and open-ended actions ask for approval unless the security level or an earlier “Always allow” covers them.
Profile key
tool.write.description

Creates a file, or replaces an existing one completely, with the content the model supplies.

Missing parent folders are created. The write is atomic: the file holds either the old content or the new, never part of each. Content can be up to 2 MiB.

Good to know

The first two checks are the conversation's file write guards, on unless you turn them off; the last always applies:

  • The model must have read or written an existing file in this conversation before it replaces it; reads from before Mewrk restarted still count. A new file needs no read.
  • If the file changed on disk since that read, including while Mewrk was closed, the write is refused until the model reads it again. After a whole-file read, a file whose text is unchanged does not count as changed.
  • In Plan mode, files in a Git repository that Git does not ignore are refused, new files included. Paths outside the repository or ignored by Git can still be written.

Parameters

ParameterTypeDetails
content required
File content
string—
path required
Path
string—