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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "read-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to read | |
| connectionName | No | SSH connection name (optional, default is 'default') | |
| maxLines | No | Maximum number of lines to read (optional, reads entire file if not specified) | |
| startLine | No | Line number to start reading from (optional, 1-indexed, default is 1) | |
| sudo | No | Read file with sudo privileges (optional, default is false) |