Microsoft 365 Pack
★Trustedv1.0.0MIT✔Verified88by AgentNode · published 22 days ago · toolpack
Integrate with Outlook, OneDrive, Teams, and Excel via Microsoft Graph.
Access Microsoft 365 services through the Graph API. Send emails, manage calendar events, upload files to OneDrive, post to Teams channels, and read/write Excel workbooks.
Quick Start
agentnode install microsoft-365-packUsage
From packagefrom microsoft_365_pack.tool import run
result = run(
action="send_email",
to=["sarah.chen@acme.com", "dev-team@acme.com"],
subject="Q1 Sprint Retrospective Notes",
body="Hi team,\n\nAttached are the retrospective notes from Friday's session. Key action items are highlighted in yellow.\n\nBest,\nAlex",
attachments=["/tmp/retro-notes-q1.pdf"],
importance="high"
)
print(f"Email sent: {result['message_id']}")Environment Variables
MS_CLIENT_IDAzure AD application (client) ID for Microsoft Graph API authentication
MS_CLIENT_SECRETAzure AD application client secret for OAuth2 client credentials flow
MS_TENANT_IDAzure AD tenant (directory) ID identifying your organization
Verification
Package installs and imports correctly. runtime checks passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Last verified 18d ago· Runner v2.0.0
Use this when you need to...
- ›Send automated Outlook emails with attachments to distribution lists
- ›Upload and organize project files in OneDrive shared folders
- ›Post status updates and adaptive cards to Teams channels
- ›Read and transform Excel spreadsheets into structured data
- ›Search Outlook calendar for scheduling conflicts across attendees
README
Microsoft 365 Pack
Integrate with Outlook, OneDrive, Teams, and Excel via Microsoft Graph API. Automate emails, manage files, post to channels, and process spreadsheets from your AI agent workflows.
Quick Start
agentnode install microsoft-365-pack
from microsoft_365_pack.tool import run
result = run(action="send_email", to=["team@company.com"], subject="Hello", body="Sent from my agent.")
print(result)
Usage
Send Emails via Outlook
result = run(
action="send_email",
to=["alice@example.com"],
subject="Weekly Report",
body="Please find this week's metrics attached.",
attachments=["/tmp/report.xlsx"]
)
Upload Files to OneDrive
result = run(
action="onedrive_upload",
local_path="/tmp/presentation.pptx",
remote_path="/Projects/Q1 Launch/deck.pptx",
share_with=["marketing@company.com"]
)
print(f"Shared link: {result['share_url']}")
Read Excel Spreadsheet Data
result = run(
action="excel_read",
file_path="/Shared Documents/sales-data.xlsx",
sheet="January",
range="A1:F50"
)
for row in result["rows"]:
print(row)
API Reference
| Capability | Description |
|---|---|
onedrive_access | Upload, download, list, and share OneDrive files and folders |
outlook_access | Send/read emails, manage calendar events, search mailbox |
teams_access | Post messages, adaptive cards, and replies to Teams channels |
Requirements
| Variable | Required | Description |
|---|---|---|
MS_CLIENT_ID | Yes | Azure AD application client ID |
MS_CLIENT_SECRET | Yes | Azure AD application client secret |
MS_TENANT_ID | Yes | Azure AD tenant (directory) ID |
Register an app at Azure Portal and grant Microsoft Graph API permissions.
License
MIT
Version History
Capabilities
Permissions
This package declares the following access levels. Review before installing.
agentnode install microsoft-365-packEnvironment Variables
MS_CLIENT_IDrequiredMS_CLIENT_SECRETrequiredMS_TENANT_IDrequiredFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode