通过精确文本替换编辑文件。如果Documentation Index
Fetch the complete documentation index at: https://docs.cowagent.ai/llms.txt
Use this file to discover all available pages before exploring further.
oldText 为空则追加到文件末尾。
依赖
无额外依赖,默认可用。参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
path | string | 是 | 文件路径 |
oldText | string | 是 | 要替换的原始文本(为空时追加到末尾) |
newText | string | 是 | 替换后的文本 |
使用场景
- 修改配置文件中的特定参数
- 修复代码中的 bug
- 在文件指定位置插入内容
