write_file
Overwrite a remote file on a configured host via SSH. Keeps a .bak backup of the previous version, and is refused on read-only hosts.
Instructions
Overwrite a remote file. Refused on read-only hosts.
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": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Configured host name | |
| path | Yes | Absolute path of the file to write | |
| backup | No | Keep a .bak copy of the previous version | |
| content | Yes | Full new contents of the file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |