file_delete_lines
Delete an inclusive 1-based line range from a file, with optional dry-run diff preview and undo support. Out-of-range lines are refused, and newline style and BOM are preserved.
Instructions
Delete an inclusive 1-based line range and return operation_id and undo_available.
Out-of-range references are refused, never clamped. The file's newline
convention and byte-order mark are preserved. dry_run returns a unified
diff preview and writes nothing. Otherwise the operation is recorded and
undoable.
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>",
"start_line": "<start_line>",
"end_line": "<end_line>"
},
"name": "file_delete_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dry_run | No | ||
| end_line | Yes | ||
| start_line | Yes | ||
| expected_hash | No | ||
| expected_content | No |