get_issue_attachment
Downloads an issue attachment by ID and returns it as MCP image or embedded resource, or as base64 JSON for programmatic processing.
Instructions
Downloads one attachment of an issue. Returns it as MCP image or embedded resource content by default, or as base64 in a JSON object with format: 'base64'. Call get_issue first to obtain the attachmentId from the issue's attachments array.
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": {
"attachmentId": "<attachmentId>"
},
"name": "get_issue_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | How to return the file. 'auto' (default) returns a verified raster image as MCP image content and anything else as an embedded resource, so a client can render it. 'base64' returns a single JSON object with the encoded bytes in `content`, for callers that process the file programmatically — note that this puts the whole encoding in the caller's context. | |
| issueId | No | The numeric ID of the issue (e.g., 12345) | |
| issueKey | No | The key of the issue (e.g., 'PROJ-123') | |
| maxBytes | No | Maximum raw attachment size in bytes. Defaults to 5242880 and cannot exceed 7340032. | |
| attachmentId | Yes | The numeric ID of the attachment. Get it from get_issue (the issue's `attachments` array). |