ssh_write_remote_file
Write text content to a file on a remote host via SFTP, with option to append instead of overwrite.
Instructions
Write text content to a file on the remote host via SFTP.
Args: session_id: The session ID returned by ssh_connect. remote_path: Path to the file on the remote host. content: Text content to write. append: If True, append to existing file instead of overwriting (default: False).
Returns: Confirmation message with bytes written.
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": {
"session_id": "<session_id>",
"remote_path": "<remote_path>",
"content": "<content>"
},
"name": "ssh_write_remote_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| remote_path | Yes | ||
| content | Yes | ||
| append | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |