download_attachment
Retrieve a previously uploaded file from a GitLab project. Returns inline base64 for images or saves to a local path, enabling access to project attachments without direct GitLab UI access.
Instructions
Download an uploaded file from a project (images returned as base64; use local_path to save to disk). Use this to retrieve a previously uploaded project attachment; remote mode returns inline base64 for images or a download URL, while local mode can save to a path. It is read-only with respect to GitLab, requires project access, and returns the file content or an attachment/permission error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | The 32-character secret of the upload | |
| filename | Yes | The filename of the upload | |
| local_path | No | Local path to save the file (optional, defaults to current directory) | |
| project_id | Yes | Project ID or URL-encoded path of the project |