Upload an email attachment
upload_email_attachmentUpload a small attachment for outbound email, as base64 text.
Meant for small files (under about 50 KB): every base64 character goes
through the tool call itself. Larger files go through ``create_file_upload``
with ``purpose="email_attachment"``: its ``curl`` line sends the bytes, and its
``id`` works in ``send_email``'s ``attachment_ids``.
Returns ``id``, ``filename``, ``content_type`` and ``size_bytes``.
The ID is accepted in an email's ``attachment_ids`` and is reusable across sends.
Unused uploads expire after 24 hours.
The combined message and attachments must fit the 25 MB sending limit.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": {
"content_base64": "<content_base64>",
"filename": "<filename>",
"content_type": "<content_type>"
},
"name": "upload_email_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | File name shown to recipients, such as ``invoice.pdf``. | |
| llm_model | No | Model ID of the calling agent. Optional. Recorded for analytics only. | |
| content_type | Yes | The file's MIME type, such as ``application/pdf``. | |
| content_base64 | Yes | The file's bytes, base64-encoded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||