get_attachment
Download one email attachment as base64 (by drive_id or index on the message).
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": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | 0-based attachment index on the message. | |
| drive_id | No | Drive id from message attachments metadata. | |
| message_id | Yes | Message id that owns the attachment. |