gmail_add_attachment
Attach a file to an existing Gmail draft using base64 data. Returns the draft's full attachment list while preserving body, subject, and recipients.
Instructions
Attach one file to an existing Gmail draft and return the draft's full attachment list (each with attachment_id, filename, mime_type, size_bytes). Only the attachments change - body, subject, and recipients are preserved exactly. Pass the file as 'attachment' (filename + mime_type + base64 data_base64).
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": {
"draft_id": "<draft_id>",
"attachment": "<attachment>"
},
"name": "gmail_add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | ||
| draft_id | Yes | ||
| attachment | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | ||
| attachments | No |