sftp_read_file
Read a remote file over SFTP with line range slicing and SHA-256 checksum verification to confirm content integrity.
Instructions
Safely read remote file with line range slicing (startLine/endLine) and SHA-256 integrity checksum.
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": {
"filePath": "<filePath>"
},
"name": "sftp_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional SSH connection target. If omitted, uses default profile (homelab). | |
| endLine | No | 1-indexed ending line. | |
| filePath | Yes | Absolute remote file path. | |
| maxBytes | No | Max bytes to read. | |
| startLine | No | 1-indexed starting line. |