> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.deepmask.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Attachment

`outlook_get_attachment`

Downloads a specific attachment from an Outlook message. File attachments return their content as base64 in the structured output. Use `outlook_list_attachments` first to get the attachment ID.

## Parameters

| Parameter         | Type   | Required | Description                                        |
| ----------------- | ------ | -------- | -------------------------------------------------- |
| `message_id`      | string | Yes      | Message ID that owns the attachment.               |
| `attachment_id`   | string | Yes      | Attachment ID from `outlook_list_attachments`.     |
| `response_format` | string | No       | Output format: `"markdown"` (default) or `"json"`. |

## Returns

The attachment object with `id`, `name`, `contentType`, `size`, `contentBytes` (base64-encoded content for file attachments), and `sourceUrl` (for reference/linked attachments).

## Example use

> "Download the PDF attached to message ID `AAMkAGI2...`."
