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.
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": {
"host": "<host>",
"path": "<path>",
"content": "<content>"
},
"name": "ssh_write_file"
}
}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 |