# remove_person

> 这个 AirBuild MCP 工具把一个成员从团队中移除；其消息会保留。仅限拥有者。

Source: https://air.build/cn/docs/mcp-tools/remove_person/

`remove_person` 把一个成员移出团队。此人会立即失去对团队聊天和项目的访问权限；此人写过的消息会保留，仍显示其名字。它不会删除此人的 AirBuild 账户，也不会停用此人可以用来重新加入的邀请链接：请用 [revoke_invite](https://air.build/cn/docs/mcp-tools/revoke_invite/) 撤销链接。只有团队拥有者可以移除成员，且拥有者永远不能被移除。移除已经离开的人不会有任何变化。

| 只读 | 破坏性 | 幂等 |
| --- | --- | --- |
| 否 | 是 | 是 |

## 输入

| 输入 | 类型 | 必填 | 默认值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字符串（UUID） | 是 | — | 团队，来自 [list_teams](https://air.build/cn/docs/mcp-tools/list_teams/) |
| `userId` | 字符串（UUID） | 是 | — | 要移除的人，来自 [list_team_members](https://air.build/cn/docs/mcp-tools/list_team_members/) 中的 `people` |

## 结果

| 字段 | 说明 |
| --- | --- |
| `removed` | `true` |

```json
{ "removed": true }
```

## 错误

| 消息 | 何时出现 | 怎么办 |
| --- | --- | --- |
| Only the Team's owner can remove people. | 你是这个团队的成员，而不是拥有者 | 请拥有者操作 |
| The owner cannot be removed from their own Team. | `userId` 是拥有者的 | 拥有者会保留 |
| That person is not in this Team. | `userId` 从未在这个团队中 | 从 [list_team_members](https://air.build/cn/docs/mcp-tools/list_team_members/) 获取 |
| Team not found. | 团队不存在，或你不在其中 | 使用 [list_teams](https://air.build/cn/docs/mcp-tools/list_teams/) 返回的 `teamId` |

所有工具都可能返回的错误见 [服务器与登录](https://air.build/cn/docs/mcp-tools/server/#errors)。

## 示例

```json
{"name": "remove_person", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "userId": "00000000-0000-0000-0000-000000000000"}}
```
