upload_file
Transfer a local file to a remote server via SFTP by specifying the local source and remote destination paths.
Instructions
Upload a local file to the remote server via SFTP.
Args: local_path: Absolute local file path (on the machine running this MCP server). remote_path: Destination absolute path on the remote server. host_name: Named host from SSH_HOSTS config; uses default host if omitted.
Returns: Success message with transferred file size, or error details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_name | No | ||
| local_path | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |