fast_edit_multiple_blocks
Edit multiple sections of a file in one operation. Specify old text to find, new text to replace, line numbers, and mode (replace, insert before, insert after, delete line). Optionally create a backup.
Instructions
Edits multiple parts of a file at once
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": "fast_edit_multiple_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the file to edit | |
| edits | Yes | List of edit operations | |
| backup | No | Create a backup |