docs: make English the default docs language and fix link paths

This commit is contained in:
zhayujie
2026-05-31 17:52:22 +08:00
parent 126649f70f
commit 7bf4ef3d05
231 changed files with 8999 additions and 8974 deletions

View File

@@ -1,27 +1,27 @@
---
title: write - 文件写入
description: 创建或覆盖写入文件
title: write - File Write
description: Create or overwrite files
---
写入内容到文件。文件不存在则自动创建,已存在则覆盖。自动创建父目录。
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
| 参数 | 类型 | 必填 | 说明 |
| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `path` | string | 是 | 文件路径 |
| `content` | string | 是 | 要写入的内容 |
| `path` | string | Yes | File path |
| `content` | string | Yes | Content to write |
## 使用场景
## Use Cases
- 创建新的代码文件或脚本
- 生成配置文件
- 保存处理结果
- Create new code files or scripts
- Generate configuration files
- Save processing results
<Note>
单次写入不应超过 10KB。对于大文件建议先创建骨架再使用 edit 工具分块添加内容。
Single writes should not exceed 10KB. For large files, create a skeleton first, then use the edit tool to add content in chunks.
</Note>