validate_attachment
Check an email attachment against local safety policies for size, MIME type, extension, and filename before processing.
Instructions
Validate one attachment against local safety policy (size, MIME type, extension, filename).
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": "validate_attachment"
}
}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 |