replace_lines
Replace specific line ranges in files after verifying them with read_file, enabling precise code modifications in Serena MCP Server's coding toolkit.
Instructions
Replaces the given range of lines in the given file.
Requires that the same range of lines was previously read using the read_file tool to verify correctness
of the operation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| relative_path | Yes | The relative path to the file. | |
| start_line | Yes | The 0-based index of the first line to be deleted. | |
| end_line | Yes | The 0-based index of the last line to be deleted. | |
| content | Yes | The content to insert. |