You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"responseTemplate": "Email to {{to}} with subject '{{subject}}' sent (mock).",
184
-
"delayMs": 250,
185
-
"errorRate": 0,
186
-
"statusCode": 200,
187
-
"enabled": true
175
+
"name": "SendEmailWithAttachmentsAsync",
176
+
"description": "Create and send an email with optional attachments. Supports both file URIs (OneDrive/SharePoint) and direct file uploads (base64-encoded). IMPORTANT: If recipient names are provided instead of email addresses, you MUST first search for users to find their email addresses.",
177
+
"inputSchema": {
178
+
"type": "object",
179
+
"properties": {
180
+
"to": {
181
+
"type": "array",
182
+
"description": "List of To recipients (MUST be email addresses - if you only have names, search for users first to get their email addresses)",
183
+
"items": {
184
+
"type": "string"
185
+
}
186
+
},
187
+
"cc": {
188
+
"type": "array",
189
+
"description": "List of Cc recipients (MUST be email addresses - if you only have names, search for users first to get their email addresses)",
190
+
"items": {
191
+
"type": "string"
192
+
}
193
+
},
194
+
"bcc": {
195
+
"type": "array",
196
+
"description": "List of Bcc recipients (MUST be email addresses - if you only have names, search for users first to get their email addresses)",
197
+
"items": {
198
+
"type": "string"
199
+
}
200
+
},
201
+
"subject": {
202
+
"type": "string",
203
+
"description": "Subject of the email"
204
+
},
205
+
"body": {
206
+
"type": "string",
207
+
"description": "Body of the email"
208
+
},
209
+
"attachmentUris": {
210
+
"type": "array",
211
+
"description": "List of file URIs to attach (OneDrive, SharePoint, Teams, or Graph /drives/{id}/items/{id})",
212
+
"items": {
213
+
"type": "string"
214
+
}
215
+
},
216
+
"directAttachments": {
217
+
"type": "array",
218
+
"description": "List of direct file attachments with format: [{\"fileName\": \"file.pdf\", \"contentBase64\": \"base64data\", \"contentType\": \"application/pdf\"}]",
219
+
"items": {
220
+
"type": "object",
221
+
"properties": {
222
+
"FileName": {
223
+
"type": "string"
224
+
},
225
+
"ContentBase64": {
226
+
"type": "string"
227
+
},
228
+
"ContentType": {
229
+
"type": "string"
230
+
}
231
+
},
232
+
"required": []
233
+
}
234
+
},
235
+
"directAttachmentFilePaths": {
236
+
"type": "array",
237
+
"description": "List of local file system paths to attach; will be read and base64 encoded automatically.",
238
+
"items": {
239
+
"type": "string"
240
+
}
241
+
}
242
+
},
243
+
"required": []
244
+
},
245
+
"responseTemplate": "Email with subject '{{subject}}' sent successfully (mock).",
0 commit comments