write_file
Overwrite a file's full content on a remote server via SFTP. Use this when you need to replace an entire file, not for surgical edits.
Instructions
Overwrite an entire file on remote server via SFTP. WARNING: replaces full file content. For surgical edits on large files, use replace_in_file instead. Requires approval.
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": {
"server": "<server>",
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| reason | No | Human-readable explanation of what is being written and why (for audit log) | |
| server | Yes | Server name | |
| content | Yes | File content |