upload_attachment
Upload a local file as an email attachment and receive an attachment ID to use when sending mail.
Instructions
Upload a local file as a mail attachment; returns an attachment ID for send_mail. Scope: attachment:write
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": {
"file_path": "<file_path>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path of the local file to upload |