List a message's attachments
list_attachmentsLists a message's attachments with index, filename, type and size without downloading or marking it read; use the indexes to read, save, forward, or attach files.
Instructions
List one message's attachments with their index, filename, type and size; downloads nothing and marks nothing read.
Use it first whenever a tool needs an attachment index: read_attachment, save_attachment, forward_message and create_draft's attachment_indexes all take the index it returns, counted from 1. To read an attachment's content, use read_attachment next; message_id is the one search_mail or read_thread returned.
Reads that one message with read_thread's bounds. size is the transfer-encoded byte count, as size_note says, so base64 files show about a third larger than their decoded bytes. A filename is the sender's choice, with invisible characters shown as "_"; it is null for an unnamed part.
Returns attachments (index, filename, type, size) and size_note. An incomplete lookup refuses and can be retried; an unknown Message-ID refuses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | The message's RFC Message-ID, as search_mail returns it, such as <a@example.test>. Not an IMAP UID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||