Connect Microsoft 365 Account
connect_m365_accountConnect a Microsoft 365 account (or add another one, or sign one in again). Call again after you've authenticated at microsoft.com/devicelogin to finish the connection. Pass include_channel_messages: true to also read Teams channel messages and search them — that permission needs an administrator of your Microsoft 365 organization; without that approval the sign-in is refused and the account keeps its current access.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect_m365_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Ignored; kept for older clients. | |
| scopes_for | No | Also request the permission one of these needs: todo (Microsoft To Do), files (OneDrive), sharepoint (SharePoint, work accounts only), contacts (changing contacts), transcripts (reading Teams call transcripts, work accounts only; an administrator of the organization must approve it), meetings (reading Teams meeting transcripts, work accounts only; an administrator of the organization must approve it). Pass the value a consent_required answer names. | |
| account_type | No | "work" (default): a work or school Microsoft 365 account — mail, calendar, contacts, Teams. "personal": an Outlook.com / Hotmail / Live account — mail, calendar and contacts only (Microsoft has no Teams chats or directory for personal accounts, and asking for them makes Microsoft refuse the sign-in as an 'expired code'). Ask the person which one it is when unsure. | |
| include_channel_messages | No | Also request access to Teams channel messages and message search. Needs an administrator of the Microsoft 365 organization; without that approval this sign-in is refused and the account keeps its current access. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| message | No |