discord_get_message_attachments
List file attachments from a Discord message with metadata like filename, URL, size, and dimensions. Use to retrieve expired CDN links by re-calling with message and channel IDs.
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.
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 |