Connect Microsoft 365
m365_connectConnect the company's own Microsoft 365 so the agent works in its Outlook mail, calendars and OneDrive files, which stay the source of truth. The company registers an app in Microsoft Entra ID with the application permissions Mail.ReadWrite, Mail.Send, Calendars.ReadWrite and Files.ReadWrite.All, and its admin consents. Give its tenant_id and client_id, and the mailboxes the agent may act as (it never acts as anyone else). Called without secret, it answers with a link for the owner, who types the client secret on a Conecto page, so it never passes through the chat (from_a_terminal does the same from a terminal); account.credential_added says when it is connected. Each mailbox is checked before anything is kept. On accounts with an owner, cancelling events and replacing files wait for the owner's approval by default. Free. Free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tenant_id": "<tenant_id>",
"client_id": "<client_id>",
"mailboxes": "<mailboxes>"
},
"name": "m365_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | No | The app's client secret. Never shown again. Leave it out to get the link instead. | |
| client_id | Yes | ||
| mailboxes | Yes | The addresses the agent may act as, like support@ and sales@. | |
| tenant_id | Yes |