file_transfer
Upload, download, or list files on an OpenClaw server over SSH. Handles text and binary files up to 10MB; omitting local_path on download returns content directly.
Instructions
Upload, download, or list files on the OpenClaw server via SSH. Supports text and binary files up to 10MB. "download" without local_path returns file content directly.
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": {
"action": "<action>",
"remote_path": "<remote_path>"
},
"name": "file_transfer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | "upload": local -> server, "download": server -> local, "list": list files in a server directory. | |
| local_path | No | Path on the local machine. Required for upload (source) and download (destination). For download, if omitted, file content is returned in the response instead of saved to disk. | |
| remote_path | Yes | Path on the OpenClaw server (e.g. "~/scripts/backup.sh" or "~/.openclaw/workspace/trading/"). |