feat: add createReply, createReplyAll, createForward, and send draft tools for shared mailboxes - #654
Merged
eirikb merged 1 commit intoAug 29, 2026
Conversation
…tools for shared mailboxes
Adds four missing shared-mailbox endpoints that allow drafting and sending
replies, reply-alls, and forwards from a shared mailbox without immediately
sending — a workflow currently impossible with the existing send-only tools.
New tools:
- create-shared-mailbox-reply-draft (POST /users/{user-id}/messages/{id}/createReply)
- create-shared-mailbox-reply-all-draft (POST /users/{user-id}/messages/{id}/createReplyAll)
- create-shared-mailbox-forward-draft (POST /users/{user-id}/messages/{id}/createForward)
- send-shared-mailbox-draft (POST /users/{user-id}/messages/{id}/send)
The three draft-create tools use Mail.ReadWrite.Shared; the send tool uses
Mail.Send.Shared. Both scopes are already required by existing shared-mailbox
tools (create-shared-mailbox-draft and reply-shared-mailbox-mail respectively),
so no new OAuth consent is needed.
Closes Softeria#652
Contributor
|
LGTM, thanks 🙂 |
|
🎉 This PR is included in version 0.148.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds four missing shared-mailbox endpoints, requested in #652. These tools allow drafting and sending replies, reply-alls, and forwards from a shared mailbox without immediately sending — a workflow currently impossible with the existing send-only tools.
create-shared-mailbox-reply-draftPOST /users/{user-id}/messages/{id}/createReplyMail.ReadWrite.Sharedcreate-shared-mailbox-reply-all-draftPOST /users/{user-id}/messages/{id}/createReplyAllMail.ReadWrite.Sharedcreate-shared-mailbox-forward-draftPOST /users/{user-id}/messages/{id}/createForwardMail.ReadWrite.Sharedsend-shared-mailbox-draftPOST /users/{user-id}/messages/{id}/sendMail.Send.SharedMotivation
The existing shared-mailbox tools (
reply-shared-mailbox-mail,reply-all-shared-mailbox-mail,forward-shared-mailbox-mail) send immediately, with no way to create a draft first for review. The/me/equivalents (create-reply-draft,create-reply-all-draft,create-forward-draft,send-draft-message) only work for the signed-in user's personal mailbox. This PR closes that gap.OAuth scopes
Mail.ReadWrite.Sharedis already required bycreate-shared-mailbox-draft.Mail.Send.Sharedis already required byreply-shared-mailbox-mail,reply-all-shared-mailbox-mail, andforward-shared-mailbox-mail. No new OAuth consent is needed for users who already have the shared-mailbox preset enabled.Changes
src/endpoints.json— four new entries inserted afterforward-shared-mailbox-mailto keep the shared-mailbox block contiguous.The code-generation pipeline (
npm run generate) handles the rest automatically, as it does in CI.Testing
npm run verifypasses locally (68 test files, 1007 tests).