Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
Add --mailbox flag to access shared mailboxes (e.g. devops@xpo.at).
What This Skill Does
Automates Microsoft 365 mailbox operations via the Microsoft Graph API. Supports both Business (Exchange Online) and Consumer (outlook.com, hotmail.com, live.com) accounts. Covers reading, searching, drafting, sending, replying, and forwarding email using device-code authentication with tokens stored locally.
Authentication goes directly through your own Microsoft login without routing credentials through any third-party service, so mail data never leaves your machine.
When to use it
- Listing unread emails from an Outlook.com inbox on a schedule
- Searching a work Exchange mailbox for invoices or receipts
- Creating and sending email drafts without opening a browser
- Automating triage across multiple M365 profiles
- Forwarding messages programmatically from a consumer or business account
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Find any unread emails about invoices and show me the details
- 1Run list-unread.mjs to fetch recent unread messages
- 2Run search.mjs with query 'invoice' against the mailbox
- 3Collect message IDs from matching results
- 4Retrieve full message bodies with get-message.mjs for each match
- 5Return subjects, senders, and body excerpts to the user
A list of unread invoice-related emails with sender, subject, date, and body preview
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.