get_attachment
Retrieve metadata for a specific Redmine attachment by its ID, including filename, size, MIME type, author, and download URL. Use it to inspect or validate files linked to issues before downloading.
Instructions
Get metadata about a specific attachment.
Args:
attachment_id: The ID of the attachment to retrieve
Returns:
Dictionary containing attachment metadata:
- id: Attachment ID
- filename: Original filename
- filesize: File size in bytes
- content_type: MIME type of the file
- description: Optional description
- content_url: URL to download the file
- author: Author information (id, name)
- created_on: Creation timestamp
Note:
To get attachment IDs, use get_issue() which includes attachments
in the response when they exist on the issue.
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 |