Skip to main content
Glama

read-file

Read file contents from a remote SSH server, supporting partial file reading and sudo privileges for secure access.

Instructions

Read contents of a file from the remote server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the file to read
connectionNameNoSSH connection name (optional, default is 'default')
maxLinesNoMaximum number of lines to read (optional, reads entire file if not specified)
startLineNoLine number to start reading from (optional, 1-indexed, default is 1)
sudoNoRead file with sudo privileges (optional, default is false)

Latest Blog Posts

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/ZachFlint/ssh-mcp-server'

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