MCP 工具

这个 AirBuild MCP 工具重命名群组聊天或更改其描述。

update_group 重命名群组聊天、更改其描述,或两者都改。只发送要更改的内容:省略的字段保持原样。空的 title 会清除名称,App 会重新用成员的名字为群组命名。新名称会在聊天中公布;描述的更改则不会。它只适用于群组聊天:项目的聊天使用项目的名称(请使用 rename_project),私信没有可以更改的名称。它的图片用 start_picture_upload 设置。团队中的任何人都可以调用。

只读 破坏性 幂等
否 否 是

输入

输入 类型 必填 默认值 作用
teamId 字符串(UUID) 是 — 团队,来自 list_teams
channelId string 是 — 群组,grp.<uuid>,来自 list_channels
title 字符串,最多 80 个字符 否 unchanged 新名称;"" 会清除它。两端的空格会被去掉
description 字符串,最多 500 个字符 否 unchanged 新描述;"" 会清除它

结果

字段 说明
channel.channelId 群组的 ID
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
  }
}

错误

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

消息 何时出现 怎么办
This is a project’s channel: rename or delete the project instead. channelId 是项目的聊天 使用 rename_project
A direct message cannot be renamed or deleted. channelId 是私信频道 只有群组可以设置名称
This group is archived. Unarchive it to rename it. 群组已归档,且要更改 title 请对方在 App 中取消归档
This group is archived. Unarchive it to edit it. 群组已归档,且只更改 description 请对方在 App 中取消归档
Channel names must be at most N characters after trimming. title 过长 使用更短的名称
Channel descriptions must be at most N characters. description 过长 缩短它
Channel not found. 这个团队中没有该频道,或你看不到它 使用 list_channels 返回的 channelId
Team not found. 团队不存在,或你不在其中 使用 list_teams 返回的 teamId

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

示例

{"name": "update_group", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "channelId": "grp.00000000-0000-0000-0000-000000000000", "title": "Launch", "description": "Launch plans"}}