Get Content Attachments
confluence_get_attachmentsList all attachments for a Confluence page or blog post, returning metadata such as file type, size, and download URL. Use it to discover attached files, verify existence, or retrieve attachment IDs for downloads.
Instructions
List all attachments for a Confluence content item (page or blog post).
Returns metadata about attachments including:
Attachment ID, title, and file type
File size and download URL
Creation/modification dates
Version information
Important: Confluence API returns 'application/octet-stream' as the media type for most binary files (PNG, JPG, PDF) instead of specific types like 'image/png'. For filtering by file type, using the 'filename' parameter is more reliable (e.g., filename='*.png' pattern matching if supported, or exact filename).
Useful for:
Discovering what files are attached to a page
Getting attachment IDs for download operations
Checking if a specific file exists
Listing images/documents for processing
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | (Optional) Maximum number of attachments to return per request (1-100). Use pagination (start/limit) for large attachment lists. Default: 50 | |
| start | No | (Optional) Starting index for pagination. Use 0 for the first page. To get the next page, add the 'limit' value to 'start'. Default: 0 | |
| filename | No | (Optional) Filter results to only attachments matching this filename. Exact match only. Example: 'report.pdf' | |
| content_id | Yes | The ID of the Confluence content (page or blog post) to list attachments for. Example: '123456789' | |
| media_type | No | (Optional) Filter by MIME type. **Note**: Confluence API returns 'application/octet-stream' for most binary files (PNG, JPG, PDF) instead of specific MIME types like 'image/png'. For more reliable filtering, use the 'filename' parameter. Examples: 'application/octet-stream' (binary files), 'application/pdf', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' (for .docx) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |