sam_attachment_url
Creates a public download URL for an attachment using its resource ID, returning a 303 redirect to a signed S3 URL for file retrieval.
Instructions
Build the public download URL for an attachment resourceId. The URL returns a 303 redirect to a signed S3 URL — fetch with redirect:'follow' to get the file bytes.
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": {
"resourceId": "<resourceId>"
},
"name": "sam_attachment_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resourceId | Yes | Resource id from sam_get_opportunity → resourceLinks (URL-tail hex) |