sftp_write_file
Write or overwrite a text file on a remote SSH host, optionally creating missing parent directories recursively. Use it to update remote files via SFTP from an MCP agent.
Instructions
写入并覆盖远程主机文本文件(支持自动递归创建父级目录)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | 待写入的文本内容 | |
| remotePath | Yes | 远程文件绝对路径 | |
| connectionId | No | 目标连接标识符,缺省时使用当前默认连接 | |
| createDirectories | No | 当远程父级目录不存在时是否自动递归创建,默认 true |