write_remote_file
Write files on remote SSH hosts with correct handling of large, binary, or special-character data, avoiding echo and heredoc pitfalls.
Instructions
Write content to a file on the remote host using the established session.
Use this tool to write file contents instead of using echo, redirection, or heredocs with send_command. This method handles large files, binary data, and special characters correctly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| append | No | ||
| content | Yes | ||
| session_id | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |