ssh_write_file
Writes content to a file on an HPC cluster over SSH, supporting overwrite or append and local-file input. Use it instead of shell heredocs or cat commands for file creation.
Instructions
Write content to a file on HPC. Use this instead of ssh_exec with cat/heredoc.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "ssh_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute file path on HPC | |
| append | No | Append instead of overwrite | |
| content | No | File content to write (omit if using from_file) | |
| from_file | No | Local file path to read content from (avoids displaying large content in UI) |