Upload Attachment
sending_upload_attachmentUpload an email attachment for the Sendmux Sending API. Use a local file path, hosted upload, or inline base64 for small agent-authored files.
Instructions
Use this before sending a Sending API attachment. Cheapest mode: file_path on local stdio MCP reads the user-approved local file without putting bytes in model context. Hosted agents should use sending_create_attachment_upload and PUT the file outside model context. Inline content_base64 is a last resort for tiny agent-authored files only and is capped at 32 KiB decoded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Filename to use when sending the uploaded attachment. | |
| file_path | No | Local file path for stdio MCP only. The path must be inside a client-declared MCP root; hosted MCP rejects it. | |
| content_type | No | MIME type to store with the upload, for example application/pdf. | application/octet-stream |
| content_base64 | No | Last-resort inline base64 for tiny agent-authored files only. Decoded content must be at most 32 KiB; use file_path for real local files. | |
| idempotency_key | No | Optional Idempotency-Key for safely retrying the upload. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||