Download Redmine Attachment
redmine_download_attachmentDownload a Redmine attachment by its ID, returning viewable images or saving files to disk. Use auto, image, or file mode to control the output.
Instructions
Download a Redmine attachment by ID. Always returns the attachment's details; what happens to the bytes depends on mode.
Args:
attachment_id: Attachment ID (required). Get IDs from redmine_get_issue with include="attachments"
mode: "auto" (default) — images are returned as a viewable image, everything else is saved to disk "image" — return as a viewable image (images only) "file" — always save to disk and report the path
Saved files go to /tmp/redmine-mcp (set REDMINE_DOWNLOAD_DIR to change it). Files up to 10.0 MB can be saved; inline images are capped at 4.0 MB.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"attachment_id": "<attachment_id>"
},
"name": "redmine_download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How to return the bytes | auto |
| attachment_id | Yes | Attachment ID |