Get Content Attachments
confluence_get_attachmentsList and retrieve metadata for all files attached to a Confluence page or blog post, including IDs, titles, sizes, and download URLs for processing or download operations.
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
Args: ctx: The FastMCP context. content_id: The ID of the content. start: Starting index for pagination. limit: Maximum number of results (1-100). filename: Optional exact filename filter. media_type: Optional MIME type filter (note: most binaries return 'application/octet-stream').
Returns: JSON string with list of attachments and metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content_id | Yes | The ID of the Confluence content (page or blog post) to list attachments for. Example: '123456789' | |
| 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 | |
| limit | No | (Optional) Maximum number of attachments to return per request (1-100). Use pagination (start/limit) for large attachment lists. Default: 50 | |
| filename | No | (Optional) Filter results to only attachments matching this filename. Exact match only. Example: 'report.pdf' | |
| 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 |