← All skills
Tencent SkillHub Β· Developer Tools

M365 Mailbox (Graph)

Automate Microsoft 365 mailbox tasks via Microsoft Graph: read, search, draft, send emails for Business and Consumer accounts with device code authentication.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Automate Microsoft 365 mailbox tasks via Microsoft Graph: read, search, draft, send emails for Business and Consumer accounts with device code authentication.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, package-lock.json, package.json, scripts/_graph.mjs, scripts/_lib.mjs, scripts/_policy.mjs

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
0.1.1

Documentation

ClawHub primary doc Primary doc: SKILL.md 8 sections Open source page

Installation / runtime requirements

Requires Node.js (scripts are Node ESM). This skill declares its npm dependency in package.json. After installing/updating the skill, install deps: cd skills/m365-mailbox npm install

Security / boundaries

Never commit or share token caches. Default secret location (per machine): ~/.openclaw/secrets/m365-mailbox/

Setup philosophy (permission-aware)

During setup, the user chooses: What Graph permissions to request (minimal vs broad) What OpenClaw is allowed to do autonomously vs what must ask for confirmation Two modes: Minimal-consent mode (more secure): request only the scopes required for the chosen feature set. Broad-consent mode (more flexible): request a superset of scopes, but enforce an autonomy policy locally.

0) First question: connect M365 Business or M365 Home/Consumer?

Home/Consumer = hotmail.com, outlook.com, live.com Business = Work/School account (Exchange Online)

1) Privacy / keys

No third-party API key required. Auth is done via your own Microsoft login (device code flow). Tokens are stored locally per profile on the OpenClaw machine.

2) One-command setup (interactive)

node skills/m365-mailbox/scripts/setup.mjs --profile home --tenant consumers --email you@outlook.com --clientId <YOUR_APP_CLIENT_ID> --tz Europe/Vienna node skills/m365-mailbox/scripts/setup.mjs --profile business --tenant organizations --email you@company.com --clientId <IT_PROVIDED_CLIENT_ID> --tz Europe/Vienna

3) Use (examples)

node skills/m365-mailbox/scripts/list-unread.mjs --profile home --top 20 node skills/m365-mailbox/scripts/search.mjs --profile home --query "invoice" --top 20 node skills/m365-mailbox/scripts/get-message.mjs --profile home --id <MSG_ID> node skills/m365-mailbox/scripts/create-draft.mjs --profile home --to you@example.com --subject "Hi" --body "..." node skills/m365-mailbox/scripts/send-draft.mjs --profile home --id <DRAFT_ID>

Business note (users without IT admin rights)

Many tenants block: creating app registrations as a normal user user consent to new apps Mail.Send or Mail.ReadWrite without admin consent In that case this skill can still work for Business accounts, but only if your IT/SysAdmin provides a clientId for an app registration configured with: Delegated Microsoft Graph permissions (depending on your chosen feature set): Mail.Read, Mail.ReadWrite, Mail.Send, (optional) offline_access Public client flows enabled (Device Code) (Often required) Admin consent granted If you don’t get such a clientId/consent from IT, you can still use the skill with a Consumer account.

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
3 Scripts2 Config1 Docs
  • SKILL.md Primary doc
  • scripts/_graph.mjs Scripts
  • scripts/_lib.mjs Scripts
  • scripts/_policy.mjs Scripts
  • package-lock.json Config
  • package.json Config