download_attachment_safe
Safely download a validated Gmail attachment. Blocks risky files and enforces policy checks before returning the data.
Instructions
Safely download one validated attachment. Blocks risky files and enforces policy checks before returning data.
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": {
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "download_attachment_safe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | The Gmail message ID containing the attachment | |
| attachmentId | Yes | The attachment ID from read_email or list_attachments_with_safety |