Open message attachments
get_attachmentRetrieve a Discord message's attachments to view images, read text files such as logs or JSON, and list other files with size and URL; choose one attachment or fetch all available images.
Instructions
Opens a message's attachments so you can see them: images (screenshots, photos) come back as images, scaled down to a readable size; text files (logs, code, JSON, CSV) come back as text. Other files are listed with their size and URL. Pick one with "attachment" (ID or file name), or get all (up to 4 images).
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": {
"message": "<message>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Instead of channel: a user (ID, <@mention> or name) whose DM channel to use. | |
| guild | No | Server ID or name. Optional if DISCORD_GUILD_ID is set or the bot is in one server. | |
| channel | No | Channel or thread: ID, <#mention>, link, or name. Archived threads by ID or link. | |
| message | Yes | Message ID or message link (https://discord.com/channels/...). With a link, channel is optional. | |
| max_chars | No | Max characters per text file (default 20000). | |
| attachment | No | Attachment ID or file name. Default: all attachments. |