read
Extract specific lines from a text file using start and end line numbers, returning structured data for precise editing. Simplifies line selection in file operations via the editor-mcp server.
Instructions
Read lines from the current file from start line to end line, returning them in a dictionary like {"lines",[2,"text on second line"]]}. This makes it easier to find the precise lines to select for editing.
Args: start (int, optional): Start line number end (int, optional): End line number
Returns: dict: lines, start_line, end_line
Input Schema
Name | Required | Description | Default |
---|---|---|---|
end | Yes | ||
start | Yes |