Write remote file
write_fileWrite UTF-8 text files to a configured domain root, automatically backing up existing files to prevent data loss.
Instructions
Write a UTF-8 text file under a configured domain root. Existing files are backed up by default.
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": {
"domain": "<domain>",
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the configured domain root. | |
| backup | No | Back up existing file before writing. | |
| domain | Yes | Configured domain root to operate under. | |
| content | Yes | UTF-8 text content to write. | |
| dry_run | No | Return what would happen without writing. | |
| server_id | No | Server profile id. Defaults to config.defaultServer. | |
| backup_label | No | Backup label used in the generated filename. |