fetch_attachment
Retrieve the contents of a Discord attachment from its URL, returning images and text directly or metadata for other file types.
Instructions
An attachment's contents: an image as an image, a text file as text, anything else as its metadata
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": {
"url": "<url>"
},
"name": "fetch_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Attachment url, from a message's `[attachment: ...]` marker |