getAttachment
Retrieve specific email attachments by ID from an AgentMail inbox using inbox, message, and attachment IDs for efficient AI agent workflows.
Instructions
Get attachment by ID
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": {
"inbox_id": "<inbox_id>",
"message_id": "<message_id>",
"attachment_id": "<attachment_id>"
},
"name": "getAttachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment_id | Yes | ||
| inbox_id | Yes | ||
| message_id | Yes |