sftp_read_file
Read remote text file contents over SFTP from a Linux/Unix host, enforcing a 512KB default byte cap; larger files are rejected and should be downloaded instead.
Instructions
读取远程主机文本文件内容(单次读取限制 512KB 防爆,超出建议下载)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | 文件文本解码字符集,默认 utf-8 | utf-8 |
| maxBytes | No | 最大读取字节数限制,默认 512KB (524288 字节),超出则拦截并建议下载 | |
| remotePath | Yes | 远程文件绝对路径(必须以 '/' 开头) | |
| connectionId | No | 目标连接标识符,缺省时使用当前默认连接 |