Skip to main content
Write content to a file. Creates the file if it doesn’t exist, overwrites if it does. Automatically creates parent directories.

Dependencies

No extra dependencies, available by default.

Parameters

ParameterTypeRequiredDescription
pathstringYesFile path
contentstringYesContent to write

Use Cases

  • Create new code files or scripts
  • Generate configuration files
  • Save processing results
Single writes should not exceed 10KB. For large files, create a skeleton first, then use the edit tool to add content in chunks.