Download an email attachment
qmailing_get_attachmentDownload an attachment from an email using its UUID and attachment index; returns base64 content up to 5 MiB, or signals if the file is too large for inline retrieval.
Instructions
Download an attachment from an email and return its bytes as base64. Use after qmailing_get_email when the user asks to inspect, summarise, or forward an attachment. Inline payload is capped at 5 MiB — over the cap the tool returns { tooLarge: true, sizeBytes } instead of contentBase64, and the user has to fetch the file through the web UI.
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>",
"index": "<index>"
},
"name": "qmailing_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | Email UUID (from qmailing_list_emails / qmailing_get_email). | |
| index | Yes | Zero-based attachment index inside the email's attachment list. |