delete_lines
Remove specified lines from a file in the Serena MCP Server after verifying the range with the read_file
tool, ensuring accurate deletions in your codebase.
Instructions
Deletes the given lines in the file.
Requires that the same range of lines was previously read using the read_file
tool to verify correctness
of the operation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
end_line | Yes | The 0-based index of the last line to be deleted. | |
relative_path | Yes | The relative path to the file. | |
start_line | Yes | The 0-based index of the first line to be deleted. |
Input Schema (JSON Schema)
{
"properties": {
"end_line": {
"description": "The 0-based index of the last line to be deleted.",
"title": "End Line",
"type": "integer"
},
"relative_path": {
"description": "The relative path to the file.",
"title": "Relative Path",
"type": "string"
},
"start_line": {
"description": "The 0-based index of the first line to be deleted.",
"title": "Start Line",
"type": "integer"
}
},
"required": [
"relative_path",
"start_line",
"end_line"
],
"title": "applyArguments",
"type": "object"
}