mail_attachment_create
Generate an agent-created text or base64 file attachment for use in an email draft or send operation. Convert inline content into a named attachment ready for inclusion in outgoing mail messages.
Instructions
Create an agent-generated text/base64 file for later send or draft attachment.
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": {
"filename": "<filename>",
"content": "<content>"
},
"name": "mail_attachment_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| filename | Yes | ||
| content_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | Yes | ||
| filename | Yes | ||
| mimeType | Yes | ||
| stagedId | Yes | ||
| createdAt | Yes | ||
| sizeBytes | Yes | ||
| metadataSha256 | Yes |