Skip to main content
Glama

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

NameRequiredDescriptionDefault
endYes
startYes

Input Schema (JSON Schema)

{ "properties": { "end": { "title": "End", "type": "integer" }, "start": { "title": "Start", "type": "integer" } }, "required": [ "start", "end" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielpodrazka/editor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server