sftp_write
Create or overwrite a text file on one of your servers over SFTP. 'content' is written as UTF-8. Folders on the way that don't exist yet are created (pass create_dirs: false to refuse instead), on Linux, macOS and Windows servers (C:/path/file or C:\path\file). Capped at 512 KB; for binary uploads use a terminal/scp instead.
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": "sftp_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Server id from hosts_list | |
| path | Yes | Destination file path (created or overwritten) | |
| content | Yes | UTF-8 text to write | |
| username | No | Login user (defaults to the tunnel's user, else root) | |
| create_dirs | No | Create missing parent folders first (default true). With false, a missing folder is reported by name and nothing is written. |