Get a Redmine attachment
get_attachmentRetrieve attachment metadata, content URLs, and thumbnail links from Redmine by specifying the attachment ID. Visibility restrictions are enforced.
Instructions
Read one visible Redmine attachment from GET /attachments/:id.json for the configured API user. The required attachment_id is a positive safe integer. This endpoint has no documented query or include controls. Results contain the documented attachment metadata, sanitized content and thumbnail URLs, and safe base-path browser and download links. Redmine enforces attachment visibility and may return HTTP 401, 403, or 404. This tool never downloads files, changes attachment metadata, or deletes attachments.
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": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment_id | Yes | Positive safe-integer Redmine attachment ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| author | No | ||
| filename | Yes | ||
| filesize | No | ||
| createdOn | No | ||
| contentUrl | No | ||
| contentType | No | ||
| description | No | ||
| downloadUrl | Yes | ||
| thumbnailUrl | No |