list_attachments
Retrieve a list of all attachments on a specific email, including stable IDs, filenames, content types, and sizes, to identify and access the exact file you need.
Instructions
List all attachments on a specific email with stable attachmentIds, filenames, content types, and sizes. Use before calling get_attachment_content or save_attachment to discover what attachments are available and get their IDs. Prefer save_attachments when you want to download all attachments at once.
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": {
"emailId": "<emailId>"
},
"name": "list_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | Composite email id in FOLDER::UID format, as returned by get_emails or search_emails. | |
| contentType | No | Optional exact content type filter. | |
| includeInline | No | Include inline attachments. | |
| filenameContains | No | Optional filename substring filter. |