Skip to content

Commit be34e6f

Browse files
authored
chore: remove attachments from outlook create draft tool (#721)
1 parent c092488 commit be34e6f

File tree

1 file changed

+1
-12
lines changed
  • microsoft365/outlook-mcp/app

1 file changed

+1
-12
lines changed

microsoft365/outlook-mcp/app/main.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,6 @@ async def create_draft_tool(
260260
description="A comma-separated list of email addresses to BCC on the email. No spaces. Example: [email protected],[email protected]"
261261
),
262262
] = 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,
269263
reply_email_id: Annotated[
270264
Optional[str], Field(description="The ID of the email to reply to.")
271265
] = None,
@@ -280,18 +274,13 @@ async def create_draft_tool(
280274
try:
281275
client = create_client(SCOPES, get_access_token())
282276

283-
# Parse attachments
284-
attachment_list = []
285-
if attachments:
286-
attachment_list = attachments.split(",")
287-
288277
info = DraftInfo(
289278
subject=subject,
290279
body=body,
291280
recipients=recipients.split(","),
292281
cc=cc.split(",") if cc else [],
293282
bcc=bcc.split(",") if bcc else [],
294-
attachments=attachment_list,
283+
attachments=[],
295284
reply_all=reply_all,
296285
reply_to_email_id=reply_email_id or "",
297286
)

0 commit comments

Comments
 (0)