get_attachment_url
Resolve an attachment ID to a direct download URL, enabling file retrieval or sharing.
Instructions
Resolve an attachment ID to a downloadable URL.
Calls attachments.redirect and returns the final URL after the
redirect. Allows clients/agents to fetch the file themselves.
Use this tool when you need to:
- Get a direct URL to download an attachment
- Share or reference an attachment URL
- Let another system fetch the file
Args:
attachment_id: The attachment UUID
Returns:
The redirect URL (signed download URL)
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": {
"attachment_id": "<attachment_id>"
},
"name": "get_attachment_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |