paperclip_list_attachments
List all attachments on an issue to get IDs and metadata for downloading or deleting files.
Instructions
List all attachments on an issue.
Args:
issueId: string — Issue ID or identifier (example: "PAP-42")
limit: number — Max attachments per page (1–100, default 50)
offset: number — Number of attachments to skip (default 0)
response_format: 'markdown' | 'json' — Output format (default 'markdown')
Returns: Pagination envelope { items: Attachment[], total, count, offset, limit, has_more, next_offset }. Each item: id, filename, mimeType, size, createdAt.
Examples:
Use when: discovering attachment IDs before downloading or deleting a file
Don't use when: you already have the attachment UUID — use paperclip_download_attachment directly
Error Handling:
401: authentication failed → check PAPERCLIP_API_KEY
404: issue not found → verify ID with paperclip_list_issues
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueId | Yes | Issue ID or identifier (e.g. PAP-21) | |
| limit | Yes | Max attachments per page (1–100, default 50) | |
| offset | Yes | Number of attachments to skip (default 0) | |
| response_format | Yes | Output format: 'markdown' (default, human-readable) or 'json' (structured) | markdown |