Compose Message With File
shipmail_compose_message_with_fileCompose an email with a file attachment, then review and send or schedule it via a card action.
Instructions
Open a review card for a conversation or library file when the host supports MCP Apps file handoff and widget tool calls. The message is sent or scheduled only after the user presses the card action. For a local filesystem path, use shipmail_prepare_staged_attachment_upload instead.
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": {
"mailbox_id": "<mailbox_id>",
"to": "<to>",
"subject": "<subject>",
"file": "<file>"
},
"name": "shipmail_compose_message_with_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| bcc | No | ||
| file | Yes | ||
| html | No | ||
| text | No | ||
| headers | No | ||
| subject | Yes | ||
| metadata | No | ||
| reply_to | No | ||
| mailbox_id | Yes | Mailbox ID to send from. | |
| references | No | ||
| in_reply_to | No | ||
| scheduled_at | No | ||
| client_reference | No | ||
| source_rfc_message_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ready | Yes | ||
| filename | Yes | ||
| scheduled | Yes |