outlook

Outlook / Microsoft mail integration via Maton managed OAuth and Microsoft Graph-compatible gateway. Use when users want to read, search, summarize, draft, send, label, move, or manage Outlook / Hotmail / Live / Microsoft 365 email through an existing Maton Outlook connection. Requires MATON_API_KEY and a Maton connection with app="outlook".

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "outlook" with this command: npx skills add junzhongjunzi/maton-outlook

Outlook

Access Outlook mail through Maton using an existing OAuth connection.

Authentication

All requests require:

Authorization: Bearer $MATON_API_KEY

Environment variable required:

MATON_API_KEY

Connection check

First verify that an active Outlook connection exists.

Control endpoint:

https://ctrl.maton.ai/connections

Look for a connection with:

  • app: outlook
  • status: ACTIVE

If multiple Outlook connections exist, prefer the ACTIVE one whose metadata mail/userPrincipalName matches the user’s target mailbox.

Base path

Use the Maton Outlook gateway with Microsoft Graph v1.0 style paths:

https://gateway.maton.ai/outlook/v1.0/

Examples:

  • https://gateway.maton.ai/outlook/v1.0/me
  • https://gateway.maton.ai/outlook/v1.0/me/messages?$top=5
  • https://gateway.maton.ai/outlook/v1.0/me/mailFolders/Inbox/messages?$top=10

Preferred workflow

Prefer this order:

  1. Verify Outlook connection is ACTIVE
  2. Run a read-only probe on /outlook/v1.0/me
  3. List recent or unread messages with a small $top
  4. Read message body only when needed
  5. Summarize before taking action when the inbox is noisy
  6. Ask for confirmation before any write action

Fast paths for common tasks

Check recent mail

Use:

GET https://gateway.maton.ai/outlook/v1.0/me/messages?$top=5&$select=subject,receivedDateTime,from,isRead,webLink

Check unread mail

Use:

GET https://gateway.maton.ai/outlook/v1.0/me/messages?$top=10&$filter=isRead eq false&$select=subject,receivedDateTime,from,isRead,webLink

Check inbox folder specifically

Use:

GET https://gateway.maton.ai/outlook/v1.0/me/mailFolders/Inbox/messages?$top=10&$select=subject,receivedDateTime,from,isRead,webLink

Search messages

Use Graph-style $search when supported, for example:

GET https://gateway.maton.ai/outlook/v1.0/me/messages?$search="from:github.com"

If $search is not supported by the gateway, fall back to a smaller recent messages pull and filter in the client.

Read one message

Use:

GET https://gateway.maton.ai/outlook/v1.0/me/messages/{message-id}?$select=subject,from,toRecipients,ccRecipients,receivedDateTime,body,bodyPreview,isRead,webLink

Prefer bodyPreview first when the user only needs a quick triage.

Read-only examples

Profile

GET https://gateway.maton.ai/outlook/v1.0/me

Recent messages

GET https://gateway.maton.ai/outlook/v1.0/me/messages?$top=5&$select=subject,receivedDateTime,from,isRead,webLink

Unread messages

GET https://gateway.maton.ai/outlook/v1.0/me/messages?$top=10&$filter=isRead eq false&$select=subject,receivedDateTime,from,isRead,webLink

Drafting and sending

Treat drafting and sending as sensitive.

Draft message

POST https://gateway.maton.ai/outlook/v1.0/me/messages

Typical payload shape:

{ "subject": "...", "body": { "contentType": "Text", "content": "..." }, "toRecipients": [ { "emailAddress": { "address": "user@example.com" } } ] }

Send mail directly

POST https://gateway.maton.ai/outlook/v1.0/me/sendMail

Typical payload shape:

{ "message": { "subject": "...", "body": { "contentType": "Text", "content": "..." }, "toRecipients": [ { "emailAddress": { "address": "user@example.com" } } ] }, "saveToSentItems": true }

Prefer drafting or showing the final message preview before send unless the user explicitly asks for immediate sending.

Common write operations

Only do these after explicit user confirmation.

Patch a message

PATCH https://gateway.maton.ai/outlook/v1.0/me/messages/{message-id}

Move a message

POST https://gateway.maton.ai/outlook/v1.0/me/messages/{message-id}/move

Delete a message

DELETE https://gateway.maton.ai/outlook/v1.0/me/messages/{message-id}

Mark read / unread

PATCH https://gateway.maton.ai/outlook/v1.0/me/messages/{message-id}

Use payloads like:

{ "isRead": true }

or

{ "isRead": false }

Practical handling guidance

  • For inbox triage, start with subject, sender, received time, isRead, and webLink.
  • Avoid pulling full bodies for many messages at once unless the user explicitly wants a deep summary.
  • For summaries, first list candidate emails, then read only the few that matter.
  • When replying or sending, confirm recipients, subject, and final body before write actions.
  • Keep read-only checks small and incremental to reduce noise and risk.

Scripts

For repeated operations, prefer the bundled helper scripts:

  • scripts/outlook_mail.py for read-only tasks
  • scripts/outlook_send.py for drafting and sending

scripts/outlook_mail.py

Use it for:

  • mailbox profile
  • recent messages
  • unread messages
  • inbox messages
  • reading one message
  • search

Examples:

  • python skills/outlook/scripts/outlook_mail.py profile
  • python skills/outlook/scripts/outlook_mail.py recent --top 5
  • python skills/outlook/scripts/outlook_mail.py unread --top 10
  • python skills/outlook/scripts/outlook_mail.py get <message-id>
  • python skills/outlook/scripts/outlook_mail.py get <message-id> --full
  • python skills/outlook/scripts/outlook_mail.py search "from:github.com" --top 10

scripts/outlook_send.py

Use it for:

  • creating drafts
  • sending mail after explicit confirmation

Examples:

  • python skills/outlook/scripts/outlook_send.py draft --to user@example.com --subject "Hello" --body "Draft body"
  • python skills/outlook/scripts/outlook_send.py send --to user@example.com --subject "Hello" --body "Mail body"

Only use send after explicit user confirmation.

Prefer the scripts when the same request pattern would otherwise be rewritten in ad-hoc code.

References

For more reusable query and payload examples, read:

  • references/graph-examples.md

Use that file when you need ready-made Outlook Graph / Maton request patterns for inbox triage, message reads, folder access, drafting, sending, moving, or marking messages.

Notes

  • The gateway is Microsoft Graph-style, so fields and paths follow Graph conventions.
  • Start with small read-only requests to verify access before doing broader queries.
  • Treat send, delete, move, mark-read, and other state-changing actions as sensitive.
  • If a request returns 401 or 403, re-check MATON_API_KEY and the Outlook connection status.
  • If a request returns 400 on a path without /v1.0/, prefer the explicit outlook/v1.0/... path.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated