Download attachment
redmine_download_attachmentDownload a Redmine attachment to a local directory using its numeric ID. Save the file without overwriting existing ones.
Instructions
Download a Redmine attachment and save it into a local directory. Find the id with redmine_get_issue using include: ["attachments"]. The file is written into save_path under the attachment's own name unless you override filename. The destination must be inside the operator-configured REDMINE_ALLOWED_DIRECTORIES, and an existing file is never overwritten — the call fails instead, so pass a different filename or directory to retry. Returns where the file was saved, its name, and its size in bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Name to save the file under. Defaults to the attachment's own filename. Any directory part is stripped: only a bare filename is honoured. | |
| save_path | Yes | Destination **directory** — the filename is appended to it, so do not include one. It must resolve inside the operator-allowlisted REDMINE_ALLOWED_DIRECTORIES. | |
| attachment_id | Yes | Numeric id of the attachment. Get it from `redmine_get_issue` with `include: ["attachments"]`, which lists each attachment id, filename, and size. |