Loading...
Loading...
Operate emails via the agently-cli command-line tool: send, reply, forward, search, read, download attachments, and manage the inbox. Use this skill whenever users need to perform any email-related operations.
npx skill4agent add tencent/agentlymail agently-mailagently-clinpm install -g @tencent-qqmail/agently-clinpx skills add Tencent/AgentlyMail -g -yPlease click or copy the following link to complete authorization in your browser:%20agently-cli auth loginagently-cli +meThe email address xxx has been successfully authorized, you can use it to send and receive emails
xxx+me| Operation | Command | Purpose |
|---|---|---|
| Login Authorization | | OAuth login and save credentials |
| Logout Authorization | | Clear locally saved OAuth credentials |
| Check Authorization Status | | View current credentials and authorization status |
| Current User | | Get user information and alias list |
| List Emails | | List emails by folder with pagination |
| Read Email | | Get full content (including body, attachments) |
| Search Emails | | Keyword + multi-dimensional filtering search |
| Send Email | | Send new emails, supports cc/bcc/HTML/attachments |
| Reply to Email | | Reply to emails, supports reply-all, cc/bcc, HTML, adding attachments |
| Forward Email | | Forward to new recipients, supports cc/bcc, HTML, carrying original attachments and adding new attachments |
| Move to Deleted | | Soft delete, permanently deleted after 30 days |
| Download Attachment | | Save regular attachments locally; directly return the download_url to the user for large attachments |
Round N Assistant:
1. Call without --confirmation-token → get ctk_xxx and summary
2. Show the summary to the user and ask "Confirm?"
3. ⛔ Stop, do not call any tools, end this round
Round N+1 User:
Reply with explicit approval such as "Confirm" / "Send" / "ok"
Round N+1 Assistant:
Call with the same parameters + --confirmation-token ctk_xxx → complete the operation--dir--limit--cursor--after--before--has-attachments--is-unread--q--search-in--from--to--dir--after--before--has-attachments--is-unread--limit--cursor--cursor--to--subject--body--cc--bcc--body-format--attachment ./file.pdf--confirmation-token--id--body--body-format--reply-all--cc--bcc--attachment ./file.pdf--confirmation-token--id--to--body--body-format--cc--bcc--include-attachments--attachment ./file.pdf--confirmation-token--id--confirmation-token--msg--att--output./downloadsattachment_idatt_xxxdownload_urldata.saved_tomsg_xxxatt_xxxctk_xxxagently-cli message +search --q "Report" --has-attachments
agently-cli message +read --id msg_xxxagently-cli message +send --to alice@co.com --to bob@co.com --subject "Report" --body "See attachment" --attachment ./report.pdfagently-cli message +send --to alice@co.com --to bob@co.com --subject "Report" --body "See attachment" --attachment ./report.pdf --confirmation-token ctk_xxxattachment_idattachment +downloadagently-cli message +read --id msg_xxx
# → attachments: [{attachment_id: "att_xxx", ...}]
agently-cli attachment +download --msg msg_xxx --att att_xxxattachment_iddownload_urlattachment +downloaddownload_urlagently-cli message +read --id msg_xxx
# → attachments: [{download_url: "https://...", ...}]_notice.updatenpm install -g @tencent-qqmail/agently-cli