Create an attachment upload link
create_attachment_uploadCreates a one-time link that adds a file to a saved draft without the file's content passing through a tool call. Opening the link in a browser shows a page for choosing the file, and an HTTP PUT of the raw file to the link, such as with curl -T, also works. The file is attached under filename. The link works once and expires after 15 minutes. A draft's attachments can total 15 MB. Fluxmail Cloud passes the file to the mailbox and doesn't keep it.
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": {
"draftId": "<draftId>",
"filename": "<filename>"
},
"name": "create_attachment_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | ||
| filename | Yes | ||
| mimeType | No | ||
| accountId | No |