pipe
Stream data from a remote command or local file directly into another remote command's stdin without writing to disk, returning exit codes, transferred bytes, and SHA-256 hashes.
Instructions
把来源的数据直接接到主机上命令的标准输入,效果同 ssh A '<cmd>' | ssh B '<cmd>',数据只经过本机内存、不落盘。如 from {"host":"a","cmd":"tar -C /etc -cf - nginx"}、to {"host":"b","cmd":"tar -C /etc -xf -"}。两端各自可带 sudo、pswd、conn,用法同 exec。返回两端的退出码、传输的字节数和 sha256。
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": {
"from": "<from>",
"to": "<to>"
},
"name": "pipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 去处:{host, cmd},数据作为这条命令的标准输入 | |
| from | Yes | 来源:{host, cmd} 取这条命令的标准输出;或 {file} 读本机文件 | |
| redact | No | ||
| timeout | No | 秒,默认 60,最多 3600 | |
| max_chars | No | 每路输出的字符上限,默认 4000 |