File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
microsoft365/outlook-mcp/app Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -260,12 +260,6 @@ async def create_draft_tool(
260
260
description = "A comma-separated list of email addresses to BCC on the email. No spaces. Example: [email protected] ,[email protected] "
261
261
),
262
262
] = None ,
263
- attachments : Annotated [
264
- Optional [str ],
265
- Field (
266
- description = "A comma separated list of workspace file paths to attach to the email."
267
- ),
268
- ] = None ,
269
263
reply_email_id : Annotated [
270
264
Optional [str ], Field (description = "The ID of the email to reply to." )
271
265
] = None ,
@@ -280,18 +274,13 @@ async def create_draft_tool(
280
274
try :
281
275
client = create_client (SCOPES , get_access_token ())
282
276
283
- # Parse attachments
284
- attachment_list = []
285
- if attachments :
286
- attachment_list = attachments .split ("," )
287
-
288
277
info = DraftInfo (
289
278
subject = subject ,
290
279
body = body ,
291
280
recipients = recipients .split ("," ),
292
281
cc = cc .split ("," ) if cc else [],
293
282
bcc = bcc .split ("," ) if bcc else [],
294
- attachments = attachment_list ,
283
+ attachments = [] ,
295
284
reply_all = reply_all ,
296
285
reply_to_email_id = reply_email_id or "" ,
297
286
)
You can’t perform that action at this time.
0 commit comments