360 Secure SkillHub
360 安全技能中心

Microsoft 365

该工具基于微软Graph API,通过设备码流集成Microsoft365服务,核心功能包括管理邮件(读写/发送)、日历(获取/创建事件)、联系人及OneDrive文件。支持指定多账号操作,可通过带参数的node命令或交互式模式使用。需先在Azure注册应用,配置客户端ID等环境变量,采用集中式凭证管理保障安全,适合个人或工作场景下高效操作365服务。

robert-janssen
robert-janssen
热度 91.39
最近更新 2026-05-18 12:06:02
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:邮件起草 / 日程安排 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add microsoft365
Metadata
name
microsoft365
description
Microsoft 365 integration for Outlook, Calendar, Contacts, and OneDrive via Microsoft Graph API. Supports reading/sending emails, managing calendar events, and accessing files.
metadata
{"openclaw":{"emoji":"🟦","requires":{"bins":["node"],"env":["MICROSOFT_CLIENT_ID","MICROSOFT_TENANT_ID"]}}}

Microsoft 365 (Custom)

This skill provides a direct integration with Microsoft 365 services using the Device Code Flow.

Usage

The skill is executed via node index.js. Use the --account <name> flag to specify which account to use (e.g., --account personal).

Calendar

  • Fetch events: node index.js --account personal --calendar
  • Create event: Use interactive mode or automated scripts.

Email

  • Read emails: Interactive mode (option 1).
  • Send email: Interactive mode (option 5).

Contacts & OneDrive

  • Contacts: Interactive mode (option 3).
  • OneDrive files: Interactive mode (option 4).

Configuration & Security

This skill uses centralized credential management to keep the skill directory clean and safe for sharing.

File Locations

  • Tokens: Saved in ~/.openclaw/credentials/ms365.tokens.<account>.json.
  • Environment: Automatically loads secrets from ~/.openclaw/credentials/ms365.env if present.
  • Config: Expects config.<account>.json in the skill directory (or environment variables).

Setup

  1. Register an application in Azure (Public Client Flow, Device Code enabled).
  2. Set MICROSOFT_CLIENT_ID and MICROSOFT_TENANT_ID in your environment or ~/.openclaw/credentials/ms365.env.
  3. Run node index.js --account <name> and follow the device login instructions.