list_attachments
Retrieve metadata for every attachment in a specific Gmail message, including part ID, name, size, MIME type, and inline status, so you can choose files to download.
Instructions
List all attachments of a specific email. Returns each attachment's part ID, name, size, MIME type, and whether it is inline (embedded image/signature). Use download_attachment for one file, or download_attachments to save several (or all) in a single call.
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": {
"messageId": "<messageId>"
},
"name": "list_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | The email message ID (from list_emails or search_emails) |