ssh_write_file
Writes UTF-8 text to a remote path over SFTP via a temporary file. Requires an existing parent directory and explicit overwrite:true to replace an existing file.
Instructions
Write remote UTF-8 text via SFTP using a temporary file. Requires an existing parent directory and explicit overwrite:true to replace a file.
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": {
"hostId": "<hostId>",
"path": "<path>",
"content": "<content>"
},
"name": "ssh_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| hostId | Yes | Required stable host ID returned by ssh_list_hosts. Names are not accepted. | |
| content | Yes | ||
| overwrite | No |