Read attachment
read-attachmentFetch an email attachment using its message and attachment IDs; text content is returned as plain text and binary files as base64-encoded data for processing.
Instructions
Reads an attachment from an email. Text content is returned as text; binary content is returned base64-encoded.
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": {
"id": "<id>",
"attachmentId": "<attachmentId>"
},
"name": "read-attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message id | |
| attachmentId | Yes | Attachment id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |