Skip to content

Write File Tool

write_file Tool PRD

  1. The write_file tool will enable LLMs to write files to the filesystem.
  2. The write_file tool must use the existing permission mechanisms that are already used in other tools.
  3. The write_file tool will take 2 inputs: path, content.
    • path is the absolute path to the file to write.
    • content is the content to write to the file.
  4. If the file already exists, it will be overwritten.

Execution

  1. There is a prd for bash tool in @.ai-interactions/prompts/phase-3/prompt-7_write-file-tool.md. Based on the PRD, create a plan along with fine-grained todo list in @.ai-interactions/outputs/phase-3/ as output_9-write-file-tool.md.
  2. Let's implement based on the plan.