Files
X-Agents/account/admin/skills/system/write-file/SKILL.md
2026-03-11 16:26:22 +08:00

858 B

name, description, system, handler, tool-name, category
name description system handler tool-name category
write-file Write content to file, creating new or overwriting existing. When you need to create new files, update file content, or save generated code/data. true filesystem write_file File System

Write File

写入文件内容。

Parameters

参数 类型 必填 说明
path string 文件路径
content string 文件内容

Examples

创建配置文件:

{
  "path": "config.json",
  "content": "{\"debug\": true}"
}

写入代码文件:

{
  "path": "hello.py",
  "content": "print('Hello, World!')"
}

Notes

  • 会覆盖已存在的文件
  • 自动创建父目录(如果不存在)
  • 使用 UTF-8 编码
  • read-file: 读取文件
  • run-shell: 执行脚本