Skip to content

File write text

Writes to a file pointed to by path, overwriting it if it exists.

Request

{
    "type": "file_write_text",
    "path": "...",
    "text": "..."
}

Fields

  • path: absolute or relative path to the file to write.
  • text: UTF-8 compliant text to use as the file's contents.

Response

{
    "type": "ok"
}