read_attachment
Downloads an email attachment to a temporary file and returns its path using messageId and attachmentId from a prior read_email call.
Instructions
Download an email attachment to a temporary file and return its path. Use messageId and attachmentId from a prior read_email call. The response may include the parent message's webUrl, a user-shareable native-client link that requires mailbox access, or webUrlUnavailableReason when no link is available.
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": {
"account": "<account>",
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "read_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| messageId | Yes | ||
| attachmentId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| webUrl | No | ||
| contentType | No | ||
| webUrlUnavailableReason | No |