sftp_transfer
Transfers files between a preset SSH host and the local machine. Use get to download or put to upload; remote paths must match allowed prefixes and local paths stay under $HOME or /tmp.
Instructions
Transfer a file between the preset's SSH host and the local
machine. direction must be "get" (download) or "put" (upload).
The remote path must match the preset's sftp_allowed_paths
prefixes; the local path must be under $HOME or /tmp. Always
key-based auth, host-key verified. If the user previously approved
a time-boxed window for this preset+action, the call proceeds
without a new prompt and is recorded as 'windowed' in the audit
log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local | Yes | ||
| remote | Yes | ||
| direction | Yes | "get" (download) or "put" (upload). | |
| preset_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| local | Yes | ||
| remote | Yes | ||
| direction | Yes |