redmine_download_attachment
Download a Redmine attachment by ID to an allowed directory, validating file size before saving to prevent partial downloads.
Instructions
Download an attachment by id to a path-restricted location.
Args:
attachment_id: numeric Redmine attachment id (visible on issue
payloads at attachments[].id).
save_to: target file path. Parent directory must exist and
resolve under one of REDMINE_MCP_ALLOWED_DIRECTORIES
(default /tmp); symlinks are resolved before checking.
overwrite: if False (default), refuse to overwrite an existing
file at save_to.
Validates downloaded byte count against Redmine's reported filesize
before writing — short reads are surfaced as
attachment_size_mismatch rather than silently saving a partial
file. Read-only-safe (no Redmine writes).
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>",
"save_to": "<save_to>"
},
"name": "redmine_download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to | Yes | ||
| overwrite | No | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |