jira_get_attachment
Download a Jira issue attachment by attachment ID or by issue key and filename; images return inline and other files are saved to a temp path with metadata.
Instructions
Download a Jira issue attachment. Use when user wants to:
View an attached image (returned as a viewable image content block)
Fetch/download an attached file by id, or by issue + filename
Provide either attachmentId, OR both issueKey and filename to resolve it. Images are returned inline as an image block; other files are saved to a temp path and returned with metadata (plus inline base64 only when small, <256KB). Note: legacy Jira Server v2 API — bytes are fetched from the absolute content URL.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "jira_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Attachment filename to match within the issue | |
| issueKey | No | Issue key/ID (use with filename to resolve the attachment) | |
| attachmentId | No | Numeric attachment id to download |