discord_get_message_attachments
List a Discord message's file attachments with filename, URL, content type, size, dimensions, and spoiler flag. Use it to retrieve images, voice messages, or files from a channel or thread.
Instructions
List the file attachments of a message. Returns { attachments: [...] } with id, filename, title (the original name when Discord strips non-ASCII from filename), url, proxyUrl, contentType, size in bytes, width, height, alt-text description, voice-message duration and waveform, spoiler flag. Discord signs CDN urls with a 24-hour expiry and does not re-sign on every fetch; re-call this tool if a stored url has expired. Requires the View Channel and Read Message History permissions. Without the Message Content privileged intent, enabled in the Developer Portal, Discord returns no attachments for other users' messages unless they mention the bot. A forwarded message's files sit in its snapshot and are not listed. Read-only. Use discord_read_messages to find messages with attachments.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel_id": "<channel_id>",
"message_id": "<message_id>"
},
"name": "discord_get_message_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ID (snowflake) of the channel or thread containing the message. | |
| message_id | Yes | ID of the message whose attachments to list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachments | Yes |