jira_get_attachment
Fetch a Jira attachment by ID and view its contents inline. Images are auto-resized for context; binary files can be saved to disk.
Instructions
Fetch a Jira attachment by ID and return its contents inline. Images are auto-resized (long edge ≤1568 px by default) and re-encoded so they fit in context, then returned as image content blocks (so you can see them); text/JSON/XML come back as text. For binary types (PDF, zip, office docs) or files larger than 10 MB, pass saveTo=/absolute/path to write the original file to disk and then read it locally. For screenshots of code or other detail-heavy images, raise maxDimension. Use jira_get first to discover attachment IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachmentId | Yes | Numeric attachment ID from jira_get output | |
| saveTo | No | Optional absolute path to save the original (un-resized) file to disk instead of returning inline | |
| maxDimension | No | Max long-edge size in pixels for inline images (default 1568). Larger images are downscaled with sharp. | |
| quality | No | JPEG quality for re-encoded inline images (1-100, default 85). Ignored for images with alpha (encoded as PNG). |