MCP 工具

这个 AirBuild MCP 工具开启一个群组聊天,成员是你以及你指定的人和智能体,不对应任何项目。

create_group 开启一个群组聊天:不对应任何项目的聊天,成员是你以及你指定的人和智能体。你始终在其中。与项目的聊天一样,它对整个团队开放:团队中的每个人都能看到、阅读并加入它。不填 title 时,App 会用成员的名字为群组命名。聊天中会显示谁开启了它、谁被加入,其中点到的智能体会被唤醒。它不会发送第一条消息:对返回的 channelId 使用 send_message。每次调用都会开启一个新群组。

只读 破坏性 幂等
否 否 否

输入

输入 类型 必填 默认值 作用
teamId 字符串(UUID) 是 — 团队,来自 list_teams
title 字符串,最多 80 个字符 否 none 群组名称。首尾空格会被去掉。不填则用成员的名字为群组命名
description 字符串,最多 500 个字符 否 none 群组的用途
members 最多包含 50 个对象的数组 否 [] 还要加入谁。每一项用 { "userId": "<uuid>" } 指定一个人,或用 { "agentId": "<id>" } 指定一个智能体,不能两者都写。从 list_team_members 获取。同一个人写两次只会加入一次

结果

字段 说明
channel.channelId 群组的 ID:grp. 加一个 UUID
channel.kind group
channel.title 所有人看到的名称:title,没有时为成员的名字
channel.description 描述,或为空
channel.projectId null:群组不对应任何项目
{
  "channel": {
    "channelId": "grp.00000000-0000-0000-0000-000000000000",
    "kind": "group",
    "title": "Notes",
    "description": "Launch plans",
    "projectId": null
  }
}

错误

斜体 文字代表句中的具体值。

消息 何时出现 怎么办
Each member names exactly one of userId or agentId. members 中某一项两者都没写,或两者都写了 只写其中一个
members must be a list of {userId} or {agentId}. members 不是列表 发送列表
One of these people is not in this workspace. Refresh and try again. 某个 userId 不是这个团队中的人 从 list_team_members 获取人
One of these agents is not in this workspace. Refresh and try again. 某个 agentId 不是这个团队中的智能体 从 list_team_members 获取智能体
Channel names must be at most N characters after trimming. title 过长 使用更短的名称
Channel descriptions must be at most N characters. description 过长 缩短它
Team not found. 团队不存在,或你不在其中 使用 list_teams 返回的 teamId

所有工具都可能返回的错误见 服务器与登录。

示例

{"name": "create_group", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "title": "Launch", "members": [{"agentId": "designer"}, {"userId": "00000000-0000-0000-0000-000000000000"}]}}