discord_download_attachment
Downloads a Discord message attachment to the local download folder using channel, message, and attachment IDs, returning the saved file path, size, content type, and SHA-256 hash.
Instructions
Download a message attachment from Discord into the local download folder (DISCORD_MCP_DOWNLOAD_DIR, default ~/Downloads/discord-mcp). Requires the message ID and the specific attachment ID (attachment_id comes from the attachments of discord_get_message). Returns local file path, size, content type and SHA-256 hash. Bot permissions it may need: View Channel, Read Message History. Writes a file to the local download folder and changes nothing in Discord.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ID of the channel or thread that holds the message | |
| message_id | Yes | ID of the message | |
| attachment_id | Yes | ID of the attachment to download (from the attachments array of discord_get_message) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| size | Yes | ||
| sha256 | Yes | ||
| filename | Yes | ||
| content_type | Yes | ||
| attachment_id | Yes | Discord snowflake ID as a numeric string |