Skip to content

工具描述:Write 写入文件

Tool Description: Write

v2.1.53

Tool for writing files to the local filesystem

模板变量 / Template Variables

  • MUST_READ_FIRST_FN

将文件写入本地文件系统。

用法:

  • 如果提供的路径已存在文件,此工具将覆盖现有文件。$
  • 修改现有文件时,请优先使用 Edit 工具——它只发送差异部分。仅在创建新文件或进行完全重写时使用此工具。
  • 除非用户明确要求,否则切勿创建文档文件(*.md)或 README 文件。
  • 仅当用户明确要求时才使用表情符号。除非被要求,否则避免在文件中写入表情符号。

英文原文 / English Original

Writes a file to the local filesystem.

Usage:

  • This tool will overwrite the existing file if there is one at the provided path.$
  • Prefer the Edit tool for modifying existing files — it only sends the diff. Only use this tool to create new files or for complete rewrites.
  • NEVER create documentation files (*.md) or README files unless explicitly requested by the User.
  • Only use emojis if the user explicitly requests it. Avoid writing emojis to files unless asked.