Graphrt

Microsoft 365 (Graph)

Outlook mail list/read/send/drafts/replies, calendar events and users, agent sends need an opt-in and an optional recipient allowlist, deletes are node only

Beta v0.1.0 Node.js 22 actions ToS risk low
Use in Graphrt Desktop

About

A Graphrt plugin for Microsoft Graph v1.0: Outlook mail (list, read, search, send, drafts, replies, flags, moves), calendar events and directory users, as the signed-in user. OneDrive files are the separate onedrive plugin and Teams is microsoft-teams.

What it can do

  • Users: get_me, list_users, get_user
  • Mail reads: list_mail_folders, list_messages (all folders, $filter, $search, $orderby), list_folder_messages (e.g. inbox), get_message (optionally as plain text)
  • Mail writes: send_mail, create_draft, send_draft (node only), reply_to_message (reply or reply all), update_message (read state, categories, flag), move_message, delete_message (node only)
  • Calendar: list_calendars, list_events, calendar_view (occurrences in a time range), get_event, create_event (no attendees), update_event, delete_event (node only)
  • api_request: any other Graph endpoint (GET only for agents)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Signed-in user microsoft-graph.get_me
  • List users microsoft-graph.list_users
  • Get user microsoft-graph.get_user
  • Mail folders microsoft-graph.list_mail_folders
  • List messages microsoft-graph.list_messages
  • Folder messages microsoft-graph.list_folder_messages
  • Get message microsoft-graph.get_message
  • Send mail microsoft-graph.send_mail
  • Create draft microsoft-graph.create_draft
  • Send draft microsoft-graph.send_draft
Show all 22 actions
  • Reply microsoft-graph.reply_to_message
  • Update message microsoft-graph.update_message
  • Move message microsoft-graph.move_message
  • Delete message microsoft-graph.delete_message
  • List calendars microsoft-graph.list_calendars
  • List events microsoft-graph.list_events
  • Calendar view microsoft-graph.calendar_view
  • Get event microsoft-graph.get_event
  • Create event microsoft-graph.create_event
  • Update event microsoft-graph.update_event
  • Delete event microsoft-graph.delete_event
  • Microsoft Graph request microsoft-graph.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • MICROSOFT_CLIENT_ID Required
    Application (client) id
  • MICROSOFT_CLIENT_SECRET Required
    Client secret (required: the plugin uses a confidential client, public clients without a secret are not supported)
  • MICROSOFT_REFRESH_TOKEN Required
    Refresh token of the signed-in user (delegated, with offline_access)
  • MICROSOFT_TENANT_ID For single-tenant apps
    Tenant id or domain, default common
  • MICROSOFT_GRAPH_TOOL_ALLOW_SEND Optional
    1 lets agent tools send mail, reply and update events
  • MICROSOFT_GRAPH_TOOL_RECIPIENT_ALLOWLIST Optional
    Comma-separated addresses or @domains agent tools may send to
  • MICROSOFT_GRAPH_TOOL_TOKEN_SOURCE

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Microsoft 365 (Graph).
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install microsoft-graph
workflow.yaml
- id: send
  type: microsoft-graph.send_mail
  to: ["ops@example.com"]
  subject: "Nightly report"
  body: "<p>All jobs passed.</p>"
  body_type: html
- id: hold
  type: microsoft-graph.create_event
  subject: Focus time
  start_date_time: "2026-12-01T09:00:00"
  start_time_zone: Asia/Jakarta
  end_date_time: "2026-12-01T11:00:00"
  end_time_zone: Asia/Jakarta
Plugins in the docs