write_file
Write content to a remote file over SSH, enabling file creation or updates on remote servers.
Instructions
Write content to a remote file over SSH.
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>",
"remote_path": "<remote_path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| append | No | ||
| errors | No | strict | |
| content | Yes | ||
| encoding | No | utf-8 | |
| password | No | ||
| use_sudo | No | ||
| username | No | ||
| make_dirs | No | ||
| max_bytes | No | ||
| permissions | No | ||
| remote_path | Yes | ||
| key_filename | No | ||
| sudo_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |