Skip to main content
Glama

Terminal Controller for MCP

read_file

Extract content from a file with options to select specific rows or parse as JSON, enabling targeted data retrieval and processing in the Terminal Controller for MCP.

Instructions

Read content from a file with optional row selection Args: path: Path to the file start_row: Starting row to read from (0-based, optional) end_row: Ending row to read to (0-based, inclusive, optional) as_json: If True, attempt to parse file content as JSON (optional) Returns: File content or selected lines, optionally parsed as JSON

Input Schema

NameRequiredDescriptionDefault
as_jsonNo
end_rowNo
pathYes
start_rowNo

Input Schema (JSON Schema)

{ "properties": { "as_json": { "default": false, "title": "As Json", "type": "boolean" }, "end_row": { "default": null, "title": "End Row", "type": "integer" }, "path": { "title": "Path", "type": "string" }, "start_row": { "default": null, "title": "Start Row", "type": "integer" } }, "required": [ "path" ], "title": "read_fileArguments", "type": "object" }

You must be authenticated.

Other Tools from Terminal Controller for MCP

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/GongRzhe/terminal-controller-mcp'

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