edit_lines
Apply multiple non-overlapping 1-based line edits to a file atomically, with snapshotting and optional SHA-256 validation to prevent conflicting changes.
Instructions
Apply multiple non-overlapping 1-based line edits atomically, with snapshot and optional expectedSha256.
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": "edit_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file | |
| edits | Yes | Line edits | |
| expectedSha256 | No | Optional SHA-256 of the version being edited |