Save attachment
save_attachmentSave an email attachment directly to the attachment folder as a new file instead of returning its content. Provide a relative path; existing files are never overwritten.
Instructions
Save one attachment as a new file in the attachment folder, instead of returning its content. Give the path relative to the folder. The file mustn't exist yet: Fluxmail never replaces one. No part of the path may start with a dot. The attachment size limit does not apply.
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>",
"path": "<path>"
},
"name": "save_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | New file name, relative to the folder | |
| accountId | No | Account to operate on. Optional when exactly one account is connected. | |
| messageId | Yes | ||
| attachmentId | Yes | Opaque attachment ID returned by message metadata |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |