Loading...
Loading...
DingTalk email reading/writing, searching, replying and forwarding. Use when user says send email/check email/reply email/forward email/unread email/email search/email attachment. When sending an email in one sentence, first use dingtalk-contact to parse and confirm the recipient, then this skill sends it; does not handle DingTalk messages (use dingtalk-chat), urgent notifications (use dingtalk-misc). Command prefix: dws mail.
npx skill4agent add dingtalk-real-ai/dingtalk-workspace-cli dingtalk-mailCRITICAL — Before executing anyoperation, you MUST first use the Read tool to fully readdws. This lightweight file contains the global execution contract, security baseline, and on-demand loading navigation for shared references; do not pre-load all its references.dingtalk-shared
<!-- VISIBLE_SHORTCUTS_START -->Command reference: mail.md. For multi-step email scenarios such as complex search, attachments, batch processing, drafts, see: 09-mail.md.
dws schema --cli-path "mail +<shortcut>" --compact --jq '{cli_path,parameters,constraints,confirmation}' -f jsonresult--jq '{cli_path,outcomes:.result.outcomes,pagination}'data_schemaunknown flagunknown command--compactdws shortcut list --service mail --format json| Shortcut | Risk | Use case |
|---|---|---|
| read | Search email contacts by keyword and project a list (name/nickname/email/employee ID, etc.) |
| read | List top-level folders or subfolders under a specified parent folder |
| read | Read the full body and attachment metadata of one email |
| read | Read multiple emails in the requested order and verify identity one by one |
| read | Search emails by KQL keywords and project a list (subject/sender/time/messageId) |
| read | Read the full email conversation and precisely verify conversationId |
| read | List or filter email summaries, automatically resolve mailbox and inbox |
| read | Search mailbox users by keyword or employee ID (enterprise mailbox only) |
| User says | Command |
|---|---|
| "Send email to a@b.com" | |
| "Reply / Reply all / Forward" | |
| "Today's unread emails" | |
| "Send with CC" | |
When the following intents are matched, you must execute them in the corresponding SOP order; do not skip steps, replace commands, or fabricate email/messageId. Every command must include. The recipient mailbox must be actually resolved; do not guess.--format json
dws mail mailbox list --format jsonemailtype:ORGdws mail user search --keyword "<name>" --format jsonmailbox listmailbox listemaildws mail message list --email <mailbox> --limit <n> --format jsondws mail message search --email <mailbox> --query "<KQL>" --limit 20 --format jsonsubject:weekly reportfrom:alice@x.comfolderId:2hasAttachments:true--querydws mail message get --email <mailbox> --id <messageId> --format jsonmessageIdmessage list/searchdws mail mailbox listmail user searchdws mail message send --from <sender mailbox> --to <recipient mailbox> --subject "<subject>" --content "<body>" --format json--cc--attachment--inline-attachmentinternetMessageIddws mail message verify --email <sender mailbox> --internet-message-id <internetMessageId> --format jsonmessageIdmessageIdmessageIddws mail message reply --from <mailbox> --id <messageId> --content "<body>" --format jsonreply-alldws mail message forward --from <mailbox> --to <recipient mailbox> --id <messageId> --content "<note>" --format jsonmessage searchdws mail message get --email <mailbox> --id <messageId> --format jsonmessage getmessage searchattachment list --email <mailbox> --id <messageId>attachment download --email <mailbox> --message-id <messageId> --attachment-id <attachmentId> --name <filename>--format jsondws mailmessageId09-mail.mdcontactapiauthprofileANDhasAttachments:true AND folderId:2attachment listdws mail contact create/listdingtalk-contactdate +%H%M%SHH:mm:ss--yesmessageIdcontactIdinternetMessageIddingtalk-contactorgAuthEmaildingtalk-chat