Skip to main content
Glama

download_post_attachment

Download attachments from posts in Pararam Nexus MCP, saving files to disk or displaying supported formats directly in Claude.

Instructions

Download a specific attachment from a post.

If output_path is provided, saves file to disk and returns DownloadAttachmentResponse. If output_path is None and file type is supported, returns ImageContent for direct display. If output_path is None and file type is not supported, returns DownloadAttachmentErrorResponse.

Supported file types for ImageContent:

  • Images: JPEG, PNG, GIF, WEBP

  • Documents: PDF, DOCX, DOC, TXT, RTF, ODT, HTML, EPUB

  • Spreadsheets: XLSX, XLS, CSV

  • Data: JSON, XML

Args: chat_id: ID of the chat post_no: Post number file_guid: GUID of the file to download (from get_post_attachments) output_path: Optional absolute path where to save the file. If None, only supported file types can be displayed

Returns: ImageContent for supported file types (direct display in Claude), DownloadAttachmentResponse model when saved to disk, DownloadAttachmentErrorResponse model for errors, or error string

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idYes
post_noYes
file_guidYes
output_pathNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GaijinEntertainment/pararam-nexus-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server