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

Method getAttachment

mcp/src/client.ts:223–230  ·  view source on GitHub ↗
(
    messageId: string,
    index: number,
    opts: { inline?: boolean } = {},
    explicitAddress?: string,
  )

Source from the content-addressed store, hash-verified

221 // getAttachment (§6a #5): metadata + a short-lived download_url for one
222 // attachment. inline:true also returns base64 `data` for small attachments.
223 getAttachment(
224 messageId: string,
225 index: number,
226 opts: { inline?: boolean } = {},
227 explicitAddress?: string,
228 ): Promise<AttachmentView> {
229 return this.sdk.messages.getAttachment(this.resolveAddress(explicitAddress), messageId, index, opts);
230 }
231
232 // Cursor pagination (§6a #3): returns ONE page + next_cursor. `limit` is the
233 // page size; pass a prior response's next_cursor as `cursor` for the next page.

Callers 1

registerMessageToolsFunction · 0.45

Calls 1

resolveAddressMethod · 0.95

Tested by

no test coverage detected