Skip to main content
Glama

MCP File Editor Server

by pwilkin

read_file

Retrieve file contents efficiently, either in full or by specific line ranges, using a file path. Option to display line numbers for enhanced readability and precise file navigation.

Instructions

Read the contents of a file. You can read the entire file or specific line ranges.

Input Schema

NameRequiredDescriptionDefault
end_lineNoEnding line number (1-based). Cannot be used with full=true
file_pathYesAbsolute path to the file to read
fullNoRead the entire file. Cannot be used with start_line or end_line
show_line_numbersNoWhether to prefix each line with its line number
start_lineNoStarting line number (1-based). Cannot be used with full=true

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "end_line": { "description": "Ending line number (1-based). Cannot be used with full=true", "exclusiveMinimum": 0, "type": "integer" }, "file_path": { "description": "Absolute path to the file to read", "type": "string" }, "full": { "description": "Read the entire file. Cannot be used with start_line or end_line", "type": "boolean" }, "show_line_numbers": { "default": false, "description": "Whether to prefix each line with its line number", "type": "boolean" }, "start_line": { "description": "Starting line number (1-based). Cannot be used with full=true", "exclusiveMinimum": 0, "type": "integer" } }, "required": [ "file_path" ], "type": "object" }

Other Tools from MCP File Editor Server

Related Tools

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/pwilkin/mcp-file-edit'

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