discord_get_message_attachments
Lists file attachments of a Discord message, including URLs, content types, sizes, dimensions, alt text, and spoiler flags, so you can inspect or retrieve message media.
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. 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 |