ssh_write_file
Write text content to a remote file via SSH. Creates parent directories if needed, uses atomic write to prevent partial writes.
Instructions
Write content to a file on the remote server.
Uses atomic write (temp file + mv) to prevent partial writes. Overwrites the file if it exists, creates it if it doesn't.
Args: path: Absolute or relative path on the remote. content: Text content to write. create_dirs: If true, create parent directories if they don't exist. host: SSH host alias from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| create_dirs | No | ||
| host | No |