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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "mail_list_attachments"
}
}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. |