When using confluence_get_attachments with the media_type parameter, be aware that the Confluence API returns application/octet-stream for most binary files (PNG, JPG, PDF) instead of specific MIME types like image/png.Examples:
Copy
# This works - filter by generic binary typemedia_type="application/octet-stream" # Returns PNGs, JPGs, PDFs, etc.# This returns 0 results - specific types not supportedmedia_type="image/png" # Confluence doesn't return this type# Better approach - filter by filenamefilename="diagram.png" # More reliable for specific files
Recommended Approach:
Use the filename parameter for filtering specific files
Use media_type="application/octet-stream" to get all binary attachments
Check mediaTypeDescription field in results for human-readable type (e.g., “PNG Image”)
This is Confluence API behavior, not a limitation of this tool.