download_remote_file
Fetches one remote server file using Keychain credentials, saves it to the local downloads path, and returns a local path with a redacted tail preview. Refuses directories and files over max_bytes.
Instructions
Download one file (e.g. storage/logs/laravel.log) from the remote server using Keychain credentials. The file is saved under ~/.deployctl/downloads/// (the response gives local_path, readable with a file tool) and the last lines are returned inline with secrets redacted. Refuses directories and files over max_bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project name (e.g. my-webapp) | |
| max_bytes | No | Refuse files larger than this many bytes (default 52428800 = 50 MB) | |
| tail_lines | No | Return this many trailing lines inline (0 = save only, no preview) | |
| environment | No | Environment name (default: production) | production |
| remote_path | Yes | Absolute remote file path, as shown by browse_remote_directories |