List message attachments
mail_list_attachmentsLists attachment metadata for an email message—ID, name, type, size, inline status—without fetching file contents. Use to check attachments before retrieval.
Instructions
Lists attachment metadata for one message — id, name, contentType, size in bytes, whether it is inline, and its kind (file, item, or reference) — 20 per call by default. File contents are deliberately never returned: a single attachment would exceed the output budget many times over. Check hasAttachments on the message first; inline images count as attachments, so a message with no visible attachment can still list several.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The message id, as returned by mail_list_messages. | |
| top | No | How many attachments to return. Defaults to 20. |