sftp_write
Write content to a remote file over an active SSH/SFTP session, specifying the path, content, and encoding. Use it to create or overwrite files on remote servers.
Instructions
Write content to a remote 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": {
"sessionId": "<sessionId>",
"path": "<path>",
"content": "<content>"
},
"name": "sftp_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Remote file path | |
| content | Yes | Content to write | |
| encoding | No | File encoding | utf-8 |
| sessionId | Yes | SSH session ID |