Skip to main content
Glama

MCP Filesystem Server

MIT License
42
  • Apple
  • Linux

read_file_lines

Extract specific lines from a text file by defining path, line offset, and limit. Use this tool to retrieve precise sections of file content and metadata for efficient file handling.

Instructions

Read specific lines from a text file.

Args: path: Path to the file offset: Line offset (0-based, starts at first line) limit: Maximum number of lines to read (None for all remaining) encoding: Text encoding (default: utf-8) ctx: MCP context Returns: File content and metadata

Input Schema

NameRequiredDescriptionDefault
encodingNoutf-8
limitNo
offsetNo
pathYes

Input Schema (JSON Schema)

{ "properties": { "encoding": { "default": "utf-8", "title": "Encoding", "type": "string" }, "limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Limit" }, "offset": { "default": 0, "title": "Offset", "type": "integer" }, "path": { "title": "Path", "type": "string" } }, "required": [ "path" ], "title": "read_file_linesArguments", "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/safurrier/mcp-filesystem'

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