get_attachment
Download a specific email attachment by providing the email ID and filename; use the optional index when filenames repeat.
Instructions
Download a specific attachment from an email
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>",
"filename": "<filename>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | 0-based attachment index from get_email_by_id; required when filename is duplicated | |
| emailId | Yes | Email ID (format: folder:uid) | |
| filename | Yes | Attachment filename to retrieve |