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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dry_run | No | ||
| end_line | Yes | ||
| start_line | Yes | ||
| expected_hash | No | ||
| expected_content | No |