Write Remote File
fs_writeWrites data to a remote file over SSH, enabling automated file management. Specify path, content, and permissions for secure remote file creation.
Instructions
Writes data to a file on the remote system
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": {
"sessionId": "<sessionId>",
"path": "<path>",
"data": "<data>"
},
"name": "fs_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data to write to file | |
| mode | No | File permissions mode | |
| path | Yes | File path to write | |
| sessionId | Yes | SSH session ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |