jira_get_attachment
Fetch a Jira attachment by ID and return its contents inline. Handles images, text, videos, audio, and PDFs; oversized files save to disk.
Instructions
Fetch a Jira attachment by ID and return its contents inline. Images are auto-resized + re-encoded; text/JSON/XML return as text; videos and animated images (GIF/APNG/animated WebP) are decoded with ffmpeg into sampled frames (re-call with start/end/frames or mode=scenes to refine); audio returns as an audio block; PDFs return extracted text. Oversized/non-renderable files are saved to a temp file and the path returned. 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 for images, 768 for video frames). | |
| quality | No | JPEG quality for re-encoded inline images (1-100, default 85 for images, 65 for video frames). Ignored for images with alpha (encoded as PNG). | |
| frames | No | Video/animated-image only: number of frames to sample (default 6, range 1-60). Higher = more detail + more context. | |
| start | No | Video/animated-image only: start of sample window in seconds (default 0). Use with end/frames to zoom into a moment of interest after a coarse first pass. | |
| end | No | Video/animated-image only: end of sample window in seconds (default full duration). Must be greater than start. | |
| mode | No | Video/animated-image only: "uniform" samples N frames evenly (default); "scenes" uses ffmpeg scene-change detection, better for screencasts/narrative content. | |
| sceneThreshold | No | Video/animated-image only: scene-change sensitivity in 0-1 (default 0.3). Only used when mode=scenes. Lower = more frames, higher = fewer. |