跳到正文
所有工具

connect_m365_account

Microsoft 365 · macOS · Windows

效果: 写入. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

连接一个 Microsoft 365 账户(或添加另一个账户,或重新登录某个账户)。首次调用返回预览,不会启动任何操作;confirm: true 会获取登录代码。在 microsoft.com/devicelogin 完成身份验证后再次调用,以完成连接。传入 include_channel_messages: true 还可读取并搜索 Teams 频道消息——该权限需要你所在 Microsoft 365 组织的管理员批准;未获批准时登录会被拒绝,账户保持当前的访问权限。

必填输入

此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构 — macOS
{
  "properties": {
    "account_type": {
      "description": "\"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.",
      "enum": [
        "work",
        "personal"
      ],
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to start the sign-in. Without it the call returns a preview and does nothing.",
      "type": "boolean"
    },
    "include_channel_messages": {
      "description": "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.",
      "type": "boolean"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

connect_m365_account 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "confirm": false
}

Windows

用途

连接一个 Microsoft 365 账户(或添加另一个账户,或重新登录某个账户)。首次调用返回预览,不会启动任何操作;confirm=true 会获取登录代码,然后在 microsoft.com/devicelogin 完成身份验证后再次调用以完成连接。传入 include_channel_messages: true 还可读取并搜索 Teams 频道消息——该权限需要你所在 Microsoft 365 组织的管理员批准;未获批准时登录会被拒绝,账户保持当前的访问权限。

必填输入

此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构 — Windows
{
  "properties": {
    "confirm": {
      "description": "Must be true to start the sign-in. Without it, returns a preview.",
      "type": "boolean"
    },
    "include_channel_messages": {
      "description": "Also request access to Teams channel messages and message search. That permission needs an administrator of the Microsoft 365 organization; without that approval this sign-in is refused and the account keeps its current access.",
      "type": "boolean"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

connect_m365_account 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "confirm": false
}