ssh_write_file
Write text to a file on a remote SSH host with atomic replacement, preventing partial files if a write fails. Parent directories must already exist.
Instructions
Write text to a file on a remote SSH host. The write is atomic (temporary file, then rename), so a failed or interrupted write never leaves a partially-written destination. Parent directories are NOT created automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | SSH config alias of the target host | |
| path | Yes | Absolute or relative path of the file to write | |
| content | Yes | Text content to write |