write_file
Write text to a remote file via SSH, overwriting existing content and creating parent directories automatically.
Instructions
Write content to a remote file (overwrites existing content).
Creates parent directories if they do not exist.
Args: path: Absolute path to the destination file. content: Text content to write. host_name: Named host from SSH_HOSTS config; uses default host if omitted.
Returns: Success message or error details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| host_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |