ssh_write_file
Write text content to a file on a remote host via SFTP, overwriting it if it exists. Optionally create missing parent directories to ensure the target path is ready.
Instructions
Write text content to a file on the remote host via SFTP, overwriting it.
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": {
"session_id": "<session_id>",
"path": "<path>",
"content": "<content>"
},
"name": "ssh_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| session_id | Yes | ||
| create_dirs | No |