[tools/outlook] Send Draft tool runs the Send Message tool. #953

Closed
opened 2026-02-16 10:21:06 -05:00 by yindo · 2 comments
Owner

Originally created by @kurokobo on GitHub (Jan 28, 2026).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.4

Plugin version

0.2.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Install Outlook plugin and configure OAuth
  2. Place Send Draft tool in the app and invoke it

✔️ Error log

Got To recipients are required error, which comes from the Send Message tool, not from the Send Draft tool.

Originally created by @kurokobo on GitHub (Jan 28, 2026). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.11.4 ### Plugin version 0.2.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Install Outlook plugin and configure OAuth 2. Place **Send Draft** tool in the app and invoke it ### ✔️ Error log Got `To recipients are required` error, which comes from the **Send Message** tool, not from the **Send Draft** tool.
yindo added the bug label 2026-02-16 10:21:06 -05:00
yindo closed this issue 2026-02-16 10:21:06 -05:00
Author
Owner

@kurokobo commented on GitHub (Jan 28, 2026):

Root cause is, send_draft.yaml refers send_message.py:

https://github.com/langgenius/dify-official-plugins/blob/a74ee6819e59367091442dc1abc4f275e5bdec92/tools/outlook/tools/send_draft.yaml#L38-L40

@kurokobo commented on GitHub (Jan 28, 2026): Root cause is, `send_draft.yaml` refers `send_message.py`: https://github.com/langgenius/dify-official-plugins/blob/a74ee6819e59367091442dc1abc4f275e5bdec92/tools/outlook/tools/send_draft.yaml#L38-L40
Author
Owner

@dosubot[bot] commented on GitHub (Jan 28, 2026):

You're correct—the root cause is that send_draft.yaml delegates to send_message.py, which strictly requires a to (recipients) parameter. Since send_draft.yaml only provides a draft_id and doesn't expose or pass the to field, the validation in send_message.py fails and triggers the "To recipients are required" error. This means the Send Draft tool can't work as intended without either modifying the YAML to collect and pass recipient info, or updating the Python logic to extract recipients from the draft itself before sending. No existing issues or merged PRs address this yet, so a code or config change is needed to resolve it.
Reference: send_draft.yaml and send_message.py analysis

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Jan 28, 2026): <!-- Answer --> You're correct—the root cause is that `send_draft.yaml` delegates to `send_message.py`, which strictly requires a `to` (recipients) parameter. Since `send_draft.yaml` only provides a `draft_id` and doesn't expose or pass the `to` field, the validation in `send_message.py` fails and triggers the "To recipients are required" error. This means the Send Draft tool can't work as intended without either modifying the YAML to collect and pass recipient info, or updating the Python logic to extract recipients from the draft itself before sending. No existing issues or merged PRs address this yet, so a code or config change is needed to resolve it. [Reference: send_draft.yaml and send_message.py analysis](https://github.com/langgenius/dify-official-plugins/blob/a74ee6819e59367091442dc1abc4f275e5bdec92/tools/outlook/tools/send_draft.yaml#L20-L40) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/595cc5ae-a1e1-48f3-8e4f-4556b8370aa2?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/595cc5ae-a1e1-48f3-8e4f-4556b8370aa2?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/595cc5ae-a1e1-48f3-8e4f-4556b8370aa2?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/595cc5ae-a1e1-48f3-8e4f-4556b8370aa2?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/595cc5ae-a1e1-48f3-8e4f-4556b8370aa2?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/595cc5ae-a1e1-48f3-8e4f-4556b8370aa2?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/595cc5ae-a1e1-48f3-8e4f-4556b8370aa2?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=You%27re%20correct%E2%80%94the%20root%20cause%20is%20that%20%60send_draft.yaml%60%20delegates%20to%20%60send_message.py%60%2C%20which%20strictly%20requires%20a%20%60to%60%20%28recipients%29%20parameter.%20Since%20%60send_draft.yaml%60%20only%20provides%20a%20%60draft_id%60%20and%20doesn%27t%20expose%20or%20pass%20the%20%60to%60%20field%2C%20the%20validation%20in%20%60send_message.py%60%20fails%20and%20triggers%20the%20%22To%20recipients%20are%20required%22%20error.%20This%20means%20the%20Send%20Draft%20tool%20can%27t%20work%20as%20intended%20without%20either%20modifying%20the%20YAML%20to%20collect%20and%20pass%20recipient%20info%2C%20or%20updating%20the%20Python%20logic%20to%20extract%20recipients%20from%20the%20draft%20itself%20before%20sending.%20No%20existing%20issues%20or%20merged%20PRs%20address%20this%20yet%2C%20so%20a%20code%20or%20config%20change%20is%20needed%20to%20resolve%20it.%20%20%0A%5BReference%3A%20send_draft.yaml%20and%20send_message.py%20analysis%5D%28https%3A//github.com/langgenius/dify-official-plugins/blob/a74ee6819e59367091442dc1abc4f275e5bdec92/tools/outlook/tools/send_draft.yaml%23L20-L40%29)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/2508)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#953