list_attachments
List all file attachments in an email with their IDs, filenames, MIME types, and sizes.
Instructions
List all file attachments in an email with their IDs, filenames,
MIME types, and sizes.
Required:
message_id (str) — Gmail message ID from list_emails.
Returns on success:
{"attachments": [
{"id": "...", "filename": "report.pdf",
"mime_type": "application/pdf", "size": 204800}
]}
Workflow note: The attachment "id" field is a Gmail attachment ID —
pass it to download_attachment along with the message_id and
a save_path to download the file. Returns empty list if the
email has no attachments.
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": {
"message_id": "<message_id>"
},
"name": "list_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes |