Apply Multiple Edits to File
fs_multi_editApply multiple string replacements to the same file in one atomic call to reduce tool invocations. Pass a file path and a list of target/replacement edits, optionally replacing all occurrences.
Instructions
单次原子调用对同一个文件应用多处字符串替换修改,减少工具调用次数。
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": {
"path": "<path>",
"edits": "<edits>"
},
"name": "fs_multi_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 目标文件路径 | |
| edits | Yes | 替换项列表 |