getAttachment
getAttachmentDownload a known Redmine issue attachment to a local snapshot and extract text from supported documents or archives; images and unsupported binaries return metadata and a local path.
Instructions
Retrieve and inspect one known issue attachment by downloading it to the server's local snapshot and extracting text from supported documents or archives. Use getIssue to discover attachment IDs; images and unsupported binaries return metadata and a local path without extracted text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueId | Yes | ||
| maxChars | No | Total character budget for extracted text across all parts | |
| partLimit | No | Per-part character cap for extracted text | |
| attachmentId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Free-text note explaining the result, typically present when text extraction was skipped. | |
| parts | No | Extracted parser output. Text parts carry content; images and unsupported binaries carry localPath/fileUri and an explanatory note. | |
| fileUri | No | RFC 3986 `file://` URI pointing at the downloaded file. | |
| localPath | No | Absolute filesystem path of the downloaded file. | |
| localSize | Yes | Size of the downloaded file on disk, in bytes (-1 if the size could not be determined). | |
| truncated | Yes | True when at least one part's text was cut to fit response size limits. | |
| attachment | No | ||
| textExtracted | Yes | True when at least one part contains successfully extracted text. | |
| extractionType | No | Detected document kind used for extraction (`image`, `pdf`, `docx`, `xlsx`, `pptx`, `text`, `zip`, ...). | |
| compressionNotes | No | Human-readable notes describing how this response was compressed to fit the response size budget. Null/empty when no compression was applied. |