Multiple edits at once
multi_editApplies multiple find-and-replace edits to one file atomically, leaving it unchanged if any fragment is missing, and returns a combined diff with a backup saved first.
Instructions
Applies several replacements to one file atomically: if any fragment is not found, the file is left unchanged. Returns a combined diff. A backup is saved before editing.
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": "multi_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| edits | Yes | List of replacements, applied in order |