ssh_write_remote_file
Write text content to a file on a remote host via SFTP, with option to append instead of overwrite.
Instructions
Write text content to a file on the remote host via SFTP.
Args: session_id: The session ID returned by ssh_connect. remote_path: Path to the file on the remote host. content: Text content to write. append: If True, append to existing file instead of overwriting (default: False).
Returns: Confirmation message with bytes written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| remote_path | Yes | ||
| content | Yes | ||
| append | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |