MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / DownloadURL

Method DownloadURL

internal/httpapi/attachments.go:40–40  ·  view source on GitHub ↗

DownloadURL returns a short-lived URL the caller (or a sandboxed tool) can GET for the bytes, plus its expiry.

(agentEmail, messageID string, index int, ttl time.Duration)

Source from the content-addressed store, hash-verified

38 // DownloadURL returns a short-lived URL the caller (or a sandboxed tool) can
39 // GET for the bytes, plus its expiry.
40 DownloadURL(agentEmail, messageID string, index int, ttl time.Duration) (downloadURL string, expiresAt time.Time, err error)
41 // VerifyDownload reports whether `token` authorizes downloading attachment
42 // `index` of `messageID` (and is unexpired). Identity is NOT in the token;
43 // the download handler additionally binds the message to the path agent.

Implementers 1

nativeAttachmentStoreinternal/httpapi/attachments.go

Calls

no outgoing calls