list_work_package_attachments
List all attachments on a work package, optionally summing total file size or returning PNG/JPEG/GIF/WebP images inline for the model to view.
Instructions
List attachments on a work package.
include_total_size=true sums file_size_bytes across every attachment (independent of limit/offset); OpenProject's attachments endpoint always returns the full list in one response, so this costs no extra request in the common case. Null if file_size_bytes is hidden by server configuration, rather than leaking it indirectly through a sum.
include_images=true also reads the listed PNG/JPEG/GIF/WebP attachments
and returns them as images the model can see, appended after the list.
One shared byte budget covers the whole call
(OPENPROJECT_ATTACHMENT_CONTENT_MAX_BYTES, 5 MB by default), taken in
listing order; every attachment that was not inlined is reported in
images with its reason. Use get_attachment_content for one specific
attachment, or for text content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, capped at OPENPROJECT_MAX_PAGE_SIZE. | |
| offset | No | 1-based page number; pass the previous result's next_offset. | |
| select | No | Fields to return; a requested unset field comes back as null. Allowed: author, container_id, container_type, content_type, created_at, description, download_url, file_name, file_size_bytes, id, status, title. | |
| include_images | No | ||
| work_package_id | Yes | Work package id (e.g. 952) or display id (e.g. "PROJ-51"), not the bare number 51. | |
| include_total_size | No |