精確編輯
fs_editPerforms precise text replacements in existing files, requiring prior read and exact matches; supports replace-all and context expansion for unique matches.
Instructions
對既有檔案做精確替換。須先 fs_read;old 必須唯一(多處命中需 replace_all 或更多上下文)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>",
"edits": "<edits>"
},
"name": "fs_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| edits | Yes | ||
| force | No | 跳過 STALE_READ 守衛(慎用) |