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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to | Yes | ||
| overwrite | No | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |