read_work_item_attachment
Retrieve the content of a work item attachment for analysis, returning images as vision-readable objects and text files as strings. Supports PNG, JPEG, GIF, WEBP, and text formats up to specified size limits.
Instructions
Fetch an attachment's content so the LLM can read or analyze it.
Supported file types: Images (returned as vision-readable image, max 5 MB): PNG, JPEG, GIF, WEBP Text (returned as a string, max 1 MB): TXT, MD, CSV, HTML, XML, YAML, JSON
Not supported (use get_work_item_attachment_download_url instead): PDF - requires a text-extraction library (not installed) DOCX/XLSX/PPTX - binary Office formats, require extraction Audio / Video - non-textual binary formats Generic binary - executables, archives, etc.
Args: project_id: UUID of the project work_item_id: UUID of the work item attachment_id: UUID of the attachment
Returns: Image object for image files, plain string for text files.
Raises: ValueError: If the file type is unsupported or the file exceeds the size limit for its category.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| work_item_id | Yes | ||
| attachment_id | Yes |